From 19fa26ba6c5b78015ae52bd3024d0f8f67c8df49 Mon Sep 17 00:00:00 2001 From: Patrice Lamarque Date: Fri, 6 Dec 2024 16:19:19 +0100 Subject: [PATCH 1/2] fix variable name $PRIVATE_KEY before this fix, the script revered to the private key in variable named $PRIVATE_KEY. This made the snippet to not work is following the whole tutorial at https://docs.optimism.io/builders/app-developers/tutorials/cross-dom-bridge-erc20 where private key is declared under a different name This change updates the variable name so the tutorial can work end to end by copy-pasting code snippets fixes #1163 --- public/tutorials/standard-bridge-standard-token.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/tutorials/standard-bridge-standard-token.sh b/public/tutorials/standard-bridge-standard-token.sh index 233c5dfd4..ff8c6aa36 100644 --- a/public/tutorials/standard-bridge-standard-token.sh +++ b/public/tutorials/standard-bridge-standard-token.sh @@ -3,4 +3,4 @@ export TUTORIAL_RPC_URL=https://sepolia.optimism.io # Replace this with your L1 ERC-20 token if not using the testing token! export TUTORIAL_L1_ERC20_ADDRESS=0x5589BB8228C07c4e15558875fAf2B859f678d129 -cast send 0x4200000000000000000000000000000000000012 "createOptimismMintableERC20(address,string,string)" $TUTORIAL_L1_ERC20_ADDRESS "My Standard Demo Token" "L2TKN" --private-key $PRIVATE_KEY --rpc-url $TUTORIAL_RPC_URL --json | jq -r '.logs[0].topics[2]' | cast parse-bytes32-address +cast send 0x4200000000000000000000000000000000000012 "createOptimismMintableERC20(address,string,string)" $TUTORIAL_L1_ERC20_ADDRESS "My Standard Demo Token" "L2TKN" --private-key $TUTORIAL_PRIVATE_KEY --rpc-url $TUTORIAL_RPC_URL --json | jq -r '.logs[0].topics[2]' | cast parse-bytes32-address From f120d5c209f3e7fffc567a6178e65329b46ff6e4 Mon Sep 17 00:00:00 2001 From: Patrice Lamarque Date: Fri, 6 Dec 2024 16:38:10 +0100 Subject: [PATCH 2/2] updates hash in tutorial script updates the hash related to standard-bridge-standard-token.sh following change for #1163 --- .../app-developers/tutorials/standard-bridge-standard-token.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/builders/app-developers/tutorials/standard-bridge-standard-token.mdx b/pages/builders/app-developers/tutorials/standard-bridge-standard-token.mdx index 2506176f1..21b517400 100644 --- a/pages/builders/app-developers/tutorials/standard-bridge-standard-token.mdx +++ b/pages/builders/app-developers/tutorials/standard-bridge-standard-token.mdx @@ -88,7 +88,7 @@ Use the `cast` command to trigger the deployment function on the factory contrac This example command creates a token with the name "My Standard Demo Token" and the symbol "L2TKN". The resulting L2 ERC-20 token address is printed to the console. -```bash file=/public/tutorials/standard-bridge-standard-token.sh#L6 hash=9380086a28ce906ab47d6c1b1e2c8688 +```bash file=/public/tutorials/standard-bridge-standard-token.sh#L6 hash=1ecfdc6106e0c5179b182d66b5171c2c ```