diff --git a/content/en/tutorials/fvm/deploying-first-contract/faucet-click-send.png b/content/en/tutorials/fvm/deploying-first-contract/faucet-click-send.png index 3f4dd0b80..15376ee44 100644 Binary files a/content/en/tutorials/fvm/deploying-first-contract/faucet-click-send.png and b/content/en/tutorials/fvm/deploying-first-contract/faucet-click-send.png differ diff --git a/content/en/tutorials/fvm/deploying-first-contract/faucet-metamask-with-funds.png b/content/en/tutorials/fvm/deploying-first-contract/faucet-metamask-with-funds.png index ff5e94adf..a795765f4 100644 Binary files a/content/en/tutorials/fvm/deploying-first-contract/faucet-metamask-with-funds.png and b/content/en/tutorials/fvm/deploying-first-contract/faucet-metamask-with-funds.png differ diff --git a/content/en/tutorials/fvm/deploying-first-contract/faucet-select-account-in-metamask.png b/content/en/tutorials/fvm/deploying-first-contract/faucet-select-account-in-metamask.png index aaa824b67..e8713d3f8 100644 Binary files a/content/en/tutorials/fvm/deploying-first-contract/faucet-select-account-in-metamask.png and b/content/en/tutorials/fvm/deploying-first-contract/faucet-select-account-in-metamask.png differ diff --git a/content/en/tutorials/fvm/deploying-first-contract/faucet-transaction-link.png b/content/en/tutorials/fvm/deploying-first-contract/faucet-transaction-link.png deleted file mode 100644 index 8fb165cc8..000000000 Binary files a/content/en/tutorials/fvm/deploying-first-contract/faucet-transaction-link.png and /dev/null differ diff --git a/content/en/tutorials/fvm/deploying-first-contract/index.md b/content/en/tutorials/fvm/deploying-first-contract/index.md index a17e90483..5fb871427 100644 --- a/content/en/tutorials/fvm/deploying-first-contract/index.md +++ b/content/en/tutorials/fvm/deploying-first-contract/index.md @@ -20,11 +20,18 @@ We're going to be creating an ERC-20 token in this quickstart. The ERC-20 contra * You must have a **Metamask wallet ready** to use in your browser. Learn how [here](/tutorials/metamask-intro/create-wallet/). -* You must be connected to the **Filecoin Wallaby Testnet**. +* You must **know how to switch the network** your Metamask is connected to. Learn how [here](/tutorials/metamask-intro/switch-networks/). ## Instructions +### Connect Metamask to the Hyperspace Network + +In this tutorial, you will deploy a smart contract to the Hyperspace Filecoin Testnet, therefore, you must be connected to the network. +[This tutorial](/tutorials/metamask-intro/switch-networks/) covers how to switch networks in Metamask. + +You can use the **Connect Wallet** button in the [ChainList Hyperspace Filecoin Testnet web site](https://chainlist.org/chain/3141) to connect to the Hyperspace network. + ### Get some funds Before you can operate in the Filecoin test network, you need funds to pay for gas fees. @@ -34,17 +41,12 @@ Before you can operate in the Filecoin test network, you need funds to pay for g ![Select your account in MetaMask.](faucet-select-account-in-metamask.png) -1. Go to [wallaby.network](https://wallaby.network/#faucet) and scrolldown to the **Faucet** section. +1. Go to [hyperspace.yoga](https://hyperspace.yoga) and scrolldown to the **Faucet** section. 1. Paste your address into the address field, complete the **I am human** captcha, and then click **Send**: ![Click the send button in MetaMask.](faucet-click-send.png) -1. The faucet should give you a link to the transaction. Click it to view your transaction: - - ![Click the transaction link on the faucet.](faucet-transaction-link.png) - -1. The block explorer will show you the transaction history for your address. After a couple of minutes, you should see 5000 `tFIL` transferred to your address. -1. Open MetaMask to confirm that you received the `tFIL`: +1. Open MetaMask to confirm that you received the `tFIL`. It might take some seconds. ![View your funds in MetaMask.](faucet-metamask-with-funds.png) @@ -104,13 +106,10 @@ Now that we've successfully compiled our contract, we need to deploy it somewher 1. MetaMask will open a new window confirming that you want to connect your account to Remix. 1. Click **Next** and then **Connect** to connect your `tFIL` account to Remix. -1. Back in Remix, under the **Account** field, you'll see that it says something like `0x5A5... (5000 ether)`. This value is 5000 `tFIL`, but Remix doesn't natively support the Filecoin network and thus doesn't understand what `tFIL` is. This isn't a problem; it's just a little quirk of using Remix. - - ![Remix showing 5000 tFil.](remix-5000-tfil.png) - +1. Back in Remix, under the **Account** field, you'll see that it says something like `0x657... (5 ether)`. This value is 5 `tFIL`, but Remix doesn't natively support the Filecoin network and thus doesn't understand what `tFIL` is. This isn't a problem; it's just a little quirk of using Remix. 1. Under the **Contract** dropdown, ensure the contract you created is selected. - ![Select your contract in Remix.](remix-select-contract.png) + ![Select your contract in Remix.](remix-data.png) 1. Click **Deploy**. @@ -145,7 +144,7 @@ Let's call a method within the deployed contract to mint some tokens. ![Add an address into Remix.](remix-add-address.png) -1. This field expects an `attoFil` value. 1 `FIL` is equal to 1,000,000,000,000,000,000 `attoFil`. So if you wanted to mint 100 `FIL`, you would enter `100` followed by 18 zeros: `100000000000000000000`. +1. This field expects an `attoFil` value. 1 `FIL` is equal to 1,000,000,000,000,000,000 `attoFil`. So if you wanted to mint 1 `FIL`, you would enter `1` followed by 18 zeros: `100000000000000000000`. ![Enter a value into Remix.](remix-add-number.png) diff --git a/content/en/tutorials/fvm/deploying-first-contract/metamask-assets-import-tokens.png b/content/en/tutorials/fvm/deploying-first-contract/metamask-assets-import-tokens.png index 4c7b040a7..5fd75ff61 100644 Binary files a/content/en/tutorials/fvm/deploying-first-contract/metamask-assets-import-tokens.png and b/content/en/tutorials/fvm/deploying-first-contract/metamask-assets-import-tokens.png differ diff --git a/content/en/tutorials/fvm/deploying-first-contract/metamask-import-token.png b/content/en/tutorials/fvm/deploying-first-contract/metamask-import-token.png index 6062009c2..aff80f77c 100644 Binary files a/content/en/tutorials/fvm/deploying-first-contract/metamask-import-token.png and b/content/en/tutorials/fvm/deploying-first-contract/metamask-import-token.png differ diff --git a/content/en/tutorials/fvm/deploying-first-contract/metamask-import-tokens-autofil.png b/content/en/tutorials/fvm/deploying-first-contract/metamask-import-tokens-autofil.png index 9e14a1084..8289d4917 100644 Binary files a/content/en/tutorials/fvm/deploying-first-contract/metamask-import-tokens-autofil.png and b/content/en/tutorials/fvm/deploying-first-contract/metamask-import-tokens-autofil.png differ diff --git a/content/en/tutorials/fvm/deploying-first-contract/metamask-tokens-finished.png b/content/en/tutorials/fvm/deploying-first-contract/metamask-tokens-finished.png index 15f46cc57..2b878ed20 100644 Binary files a/content/en/tutorials/fvm/deploying-first-contract/metamask-tokens-finished.png and b/content/en/tutorials/fvm/deploying-first-contract/metamask-tokens-finished.png differ diff --git a/content/en/tutorials/fvm/deploying-first-contract/remix-5000-tfil.png b/content/en/tutorials/fvm/deploying-first-contract/remix-5000-tfil.png deleted file mode 100644 index 6f8897903..000000000 Binary files a/content/en/tutorials/fvm/deploying-first-contract/remix-5000-tfil.png and /dev/null differ diff --git a/content/en/tutorials/fvm/deploying-first-contract/remix-add-address.png b/content/en/tutorials/fvm/deploying-first-contract/remix-add-address.png index 8327cb7e7..50e19c0db 100644 Binary files a/content/en/tutorials/fvm/deploying-first-contract/remix-add-address.png and b/content/en/tutorials/fvm/deploying-first-contract/remix-add-address.png differ diff --git a/content/en/tutorials/fvm/deploying-first-contract/remix-add-number.png b/content/en/tutorials/fvm/deploying-first-contract/remix-add-number.png index 45281f241..0ab067d83 100644 Binary files a/content/en/tutorials/fvm/deploying-first-contract/remix-add-number.png and b/content/en/tutorials/fvm/deploying-first-contract/remix-add-number.png differ diff --git a/content/en/tutorials/fvm/deploying-first-contract/remix-click-deploy.png b/content/en/tutorials/fvm/deploying-first-contract/remix-click-deploy.png index 1d5d38a31..f67b39a9c 100644 Binary files a/content/en/tutorials/fvm/deploying-first-contract/remix-click-deploy.png and b/content/en/tutorials/fvm/deploying-first-contract/remix-click-deploy.png differ diff --git a/content/en/tutorials/fvm/deploying-first-contract/remix-click-transact.png b/content/en/tutorials/fvm/deploying-first-contract/remix-click-transact.png index ce99f2885..6e35403e0 100644 Binary files a/content/en/tutorials/fvm/deploying-first-contract/remix-click-transact.png and b/content/en/tutorials/fvm/deploying-first-contract/remix-click-transact.png differ diff --git a/content/en/tutorials/fvm/deploying-first-contract/remix-copy-deploy-address.png b/content/en/tutorials/fvm/deploying-first-contract/remix-copy-deploy-address.png index 92669a064..b51d26071 100644 Binary files a/content/en/tutorials/fvm/deploying-first-contract/remix-copy-deploy-address.png and b/content/en/tutorials/fvm/deploying-first-contract/remix-copy-deploy-address.png differ diff --git a/content/en/tutorials/fvm/deploying-first-contract/remix-create-workspace.png b/content/en/tutorials/fvm/deploying-first-contract/remix-create-workspace.png index 3b3088bfe..f56268b35 100644 Binary files a/content/en/tutorials/fvm/deploying-first-contract/remix-create-workspace.png and b/content/en/tutorials/fvm/deploying-first-contract/remix-create-workspace.png differ diff --git a/content/en/tutorials/fvm/deploying-first-contract/remix-data.png b/content/en/tutorials/fvm/deploying-first-contract/remix-data.png new file mode 100644 index 000000000..d15a1933a Binary files /dev/null and b/content/en/tutorials/fvm/deploying-first-contract/remix-data.png differ diff --git a/content/en/tutorials/fvm/deploying-first-contract/remix-deploy-button.png b/content/en/tutorials/fvm/deploying-first-contract/remix-deploy-button.png index 0305f4239..88f997016 100644 Binary files a/content/en/tutorials/fvm/deploying-first-contract/remix-deploy-button.png and b/content/en/tutorials/fvm/deploying-first-contract/remix-deploy-button.png differ diff --git a/content/en/tutorials/fvm/deploying-first-contract/remix-deployed-contracts-dropdown.png b/content/en/tutorials/fvm/deploying-first-contract/remix-deployed-contracts-dropdown.png index 625a6e829..12bf0e881 100644 Binary files a/content/en/tutorials/fvm/deploying-first-contract/remix-deployed-contracts-dropdown.png and b/content/en/tutorials/fvm/deploying-first-contract/remix-deployed-contracts-dropdown.png differ diff --git a/content/en/tutorials/fvm/deploying-first-contract/remix-edit-contract.png b/content/en/tutorials/fvm/deploying-first-contract/remix-edit-contract.png index 6880a8e24..190fe8510 100644 Binary files a/content/en/tutorials/fvm/deploying-first-contract/remix-edit-contract.png and b/content/en/tutorials/fvm/deploying-first-contract/remix-edit-contract.png differ diff --git a/content/en/tutorials/fvm/deploying-first-contract/remix-expand-mint-method.png b/content/en/tutorials/fvm/deploying-first-contract/remix-expand-mint-method.png index 6f8841591..43c6e94a2 100644 Binary files a/content/en/tutorials/fvm/deploying-first-contract/remix-expand-mint-method.png and b/content/en/tutorials/fvm/deploying-first-contract/remix-expand-mint-method.png differ diff --git a/content/en/tutorials/fvm/deploying-first-contract/remix-imported-contracts.png b/content/en/tutorials/fvm/deploying-first-contract/remix-imported-contracts.png index 611c0ab0c..af3086138 100644 Binary files a/content/en/tutorials/fvm/deploying-first-contract/remix-imported-contracts.png and b/content/en/tutorials/fvm/deploying-first-contract/remix-imported-contracts.png differ diff --git a/content/en/tutorials/fvm/deploying-first-contract/remix-mint-pending.png b/content/en/tutorials/fvm/deploying-first-contract/remix-mint-pending.png index 8fb6a1779..0ccaa954b 100644 Binary files a/content/en/tutorials/fvm/deploying-first-contract/remix-mint-pending.png and b/content/en/tutorials/fvm/deploying-first-contract/remix-mint-pending.png differ diff --git a/content/en/tutorials/fvm/deploying-first-contract/remix-new-workspace.png b/content/en/tutorials/fvm/deploying-first-contract/remix-new-workspace.png index ffe0084f0..9251f2cdb 100644 Binary files a/content/en/tutorials/fvm/deploying-first-contract/remix-new-workspace.png and b/content/en/tutorials/fvm/deploying-first-contract/remix-new-workspace.png differ diff --git a/content/en/tutorials/fvm/deploying-first-contract/remix-select-contract.png b/content/en/tutorials/fvm/deploying-first-contract/remix-select-contract.png index c7eddd449..6f314910a 100644 Binary files a/content/en/tutorials/fvm/deploying-first-contract/remix-select-contract.png and b/content/en/tutorials/fvm/deploying-first-contract/remix-select-contract.png differ diff --git a/content/en/tutorials/fvm/deploying-first-contract/remix-select-network-dropdown.png b/content/en/tutorials/fvm/deploying-first-contract/remix-select-network-dropdown.png index 2cde0bebe..640acdbdf 100644 Binary files a/content/en/tutorials/fvm/deploying-first-contract/remix-select-network-dropdown.png and b/content/en/tutorials/fvm/deploying-first-contract/remix-select-network-dropdown.png differ diff --git a/content/en/tutorials/fvm/deploying-first-contract/remix-transaction-pending.png b/content/en/tutorials/fvm/deploying-first-contract/remix-transaction-pending.png index 8c0d94109..245941dfa 100644 Binary files a/content/en/tutorials/fvm/deploying-first-contract/remix-transaction-pending.png and b/content/en/tutorials/fvm/deploying-first-contract/remix-transaction-pending.png differ