From ab750cc75556f08531d2101f955275ebd6af476d Mon Sep 17 00:00:00 2001 From: Martin Eckardt Date: Sat, 7 Sep 2024 12:42:23 -0400 Subject: [PATCH] Remove seperate Codespace --- .../06-deploy-with-avalanche-cli.mdx | 26 ++++--------------- 1 file changed, 5 insertions(+), 21 deletions(-) diff --git a/content/course/interchain-token-transfer/06-erc-20-to-erc-20-bridge/06-deploy-with-avalanche-cli.mdx b/content/course/interchain-token-transfer/06-erc-20-to-erc-20-bridge/06-deploy-with-avalanche-cli.mdx index ed12ba56..5fc1bc1e 100644 --- a/content/course/interchain-token-transfer/06-erc-20-to-erc-20-bridge/06-deploy-with-avalanche-cli.mdx +++ b/content/course/interchain-token-transfer/06-erc-20-to-erc-20-bridge/06-deploy-with-avalanche-cli.mdx @@ -22,31 +22,15 @@ In the previous sections of this chapter we manually deployed and interacted wit -### Deploy ERC-20 Contract on C-chain - -Now we will deploy an ERC-20 contract. We are using OpenZeppelin's example contract which has been renamed to `ERC20.sol` for convenience. - -```bash -forge create --rpc-url local-c --private-key $PK src/8-erc20-to-erc20-interchain-token-transfer/ERC20.sol:TOK -``` +### Deploy Avalanche Interchain Token Transfer Contracts -Add the contract address in the environment variables. +First retrieve the address of the ERC-20 token on C-Chain. ```bash -export ERC20_C_CHAIN=<"Deployed to" address> +echo $ERC20_C_CHAIN ``` - -Check your balance using the command below: -```bash -cast call --rpc-url local-c --private-key $PK $ERC20_C_CHAIN "balanceOf(address)(uint)" $FUNDED_ADDRESS -``` -100,000 tokens should be returned. - - - -### Deploy Avalanche Interchain Token Transfer Contracts - -Next we will deploy two Interchain Token Transfer contracts. One for the source chain (C-Chain) and another on the destination chain (myblockchain). + +Next we will deploy two Interchain Token Transfer contracts using the Avalanche CLI. It will deploy the contracts on the source chain (C-Chain) and on the destination chain (myblockchain) for us. ```bash avalanche interchain tokenTransferrer deploy