Skip to content

Commit 282aff5

Browse files
committed
fix
1 parent 663c6a4 commit 282aff5

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

packages/eth-deposit-to-different-address/scripts/exec.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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,

packages/eth-deposit/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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">

packages/eth-deposit/scripts/exec.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)