You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DAPP.MD
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,8 +18,8 @@ Note that the target EVM version is set to "Petersburg".
18
18
19
19
20
20
### Step 3: Get the ABI of the code
21
-
Switch to MyToken contract and the save ABI json file. This file will be used to access the contract.
22
-
An example ABI of the code can be found [here](https://gist.github.com/qizhou/7a7753df36f50cb1f05e05ed18a59af7#file-mytoken_abi-json)
21
+
Switch to MyToken contract and save the ABI json file. This file will be used to access the contract.
22
+
An example ABI of the code can be found [here](https://gist.github.com/qizhou/7a7753df36f50cb1f05e05ed18a59af7#file-mytoken_abi-json). Note that you need to switch to MyToken contract again to get the ABI file if the code is re-compiled.
23
23

24
24
25
25
### Step 4: Deploy the code with totalSupply as constructor parameter
@@ -32,7 +32,7 @@ An example binary of the code can be found [here](https://gist.github.com/qizhou
32
32

33
33
34
34
### Step 6: Deploy the code on QuarkChain mainnet
35
-
Now, we are ready to deploy and run the code on QuarkChain mainnet. First, we open the contract page on [QuarkChain explorer](http://http://mainnet.quarkchain.io/contract).
35
+
Now, we are ready to deploy and run the code on QuarkChain mainnet. First, open the contract page on [QuarkChain explorer](https://mainnet.quarkchain.io/contract).
36
36
Switch to "Deploy" tab and paste the binary code in "Byte Code", and then sign and submit the deployment transaction.
37
37
Note that the contract will be deployed on the chain of sender (e.g., chain 0 in the example). If you wish to deploy on different chain, simply switch to the chain id in Account tab.
38
38

@@ -45,7 +45,7 @@ From the figure, we could determine
45
45

46
46
47
47
### Step 8: Access the contract
48
-
Now we are able to read/write the contract in the "Interact" tab in [QuarkChain explorer](http://mainnet.quarkchain.io/contract).
48
+
Now we are able to read/write the contract in the "Interact" tab in [QuarkChain explorer](https://mainnet.quarkchain.io/contract).
49
49
50
50
The tab will accept two parameters:
51
51
1. The contract address after the successful deployment
0 commit comments