File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
eth-deposit-to-different-address/scripts Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,10 @@ const main = async () => {
4141 const isCustomGasTokenChain =
4242 ethBridger . nativeToken && ethBridger . nativeToken !== constants . AddressZero ;
4343
44+ if ( isCustomGasTokenChain ) {
45+ console . log ( 'Custom gas token chain detected' ) ;
46+ }
47+
4448 /**
4549 * First, let's check the balance of the destination address
4650 */
@@ -51,7 +55,6 @@ const main = async () => {
5155 * to pay for the execution of the retryable tickets on the child chain
5256 */
5357 if ( isCustomGasTokenChain ) {
54- console . log ( 'Custom gas token chain detected' ) ;
5558 console . log ( 'Giving allowance to the deployed token to transfer the chain native token' ) ;
5659 const approvalTransactionRequest = await ethBridger . getApproveGasTokenRequest ( {
5760 erc20ParentAddress : ethBridger . nativeToken ,
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ Note that you can also set the environment variables in an `.env` file in the ro
2727## Run
2828
2929```
30- yarn run depositNative
30+ yarn run depositETH
3131```
3232
3333<p align =" left " >
Original file line number Diff line number Diff line change @@ -41,6 +41,10 @@ const main = async () => {
4141 const isCustomGasTokenChain =
4242 ethBridger . nativeToken && ethBridger . nativeToken !== constants . AddressZero ;
4343
44+ if ( isCustomGasTokenChain ) {
45+ console . log ( 'Custom gas token chain detected' ) ;
46+ }
47+
4448 /**
4549 * First, let's check the wallet's initial balance in the child chain
4650 */
@@ -51,7 +55,6 @@ const main = async () => {
5155 * to pay for the execution of the retryable tickets on the child chain
5256 */
5357 if ( isCustomGasTokenChain ) {
54- console . log ( 'Custom gas token chain detected' ) ;
5558 console . log ( 'Giving allowance to the deployed token to transfer the chain native token' ) ;
5659 const approvalTransactionRequest = await ethBridger . getApproveGasTokenRequest ( {
5760 erc20ParentAddress : ethBridger . nativeToken ,
You can’t perform that action at this time.
0 commit comments