Skip to content

Commit

Permalink
Include CustomGasToken config in getting-started
Browse files Browse the repository at this point in the history
  • Loading branch information
ezdac committed Jul 4, 2024
1 parent 0f800dc commit 3cf11a6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .envrc.example
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,11 @@ export FUNDS_DEV_ACCOUNTS=false
export USE_PLASMA=false
# Set to false if migrating state from a Celo L1. True for new testnets
export DEPLOY_CELO_CONTRACTS=false

export USE_CUSTOM_GAS_TOKEN=true
# Set to "0x0000000000000000000000000000000000000000" when the contract
# should get deployed (via create2) on L1 as part of the deploy script.
# Set to the deployed contract address when already deployed on L1
# This only works when USE_CUSTOM_GAS_TOKEN=true
export CUSTOM_GAS_TOKEN_ADDRESS=0x0000000000000000000000000000000000000000

Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ reqenv "L2_BLOCK_TIME"
reqenv "FUNDS_DEV_ACCOUNTS"
reqenv "USE_PLASMA"
reqenv "DEPLOY_CELO_CONTRACTS"
reqenv "USE_CUSTOM_GAS_TOKEN"
reqenv "CUSTOM_GAS_TOKEN_ADDRESS"

# Get the finalized block timestamp and hash
block=$(cast block finalized --rpc-url "$L1_RPC_URL")
Expand Down Expand Up @@ -126,7 +128,10 @@ config=$(cat << EOL
"daChallengeWindow": 3600,
"daResolveWindow": 3600,
"daBondSize": 1000000,
"daResolverRefundPercentage": 0
"daResolverRefundPercentage": 0,
"useCustomGasToken": $USE_CUSTOM_GAS_TOKEN,
"customGasTokenAddress": $CUSTOM_GAS_TOKEN_ADDRESS
}
EOL
)
Expand Down

0 comments on commit 3cf11a6

Please sign in to comment.