Author: Lin Guanhong/The Ghost at my Fingertips. Transporters, please: Be sure to identify the source.
The Denver nuggets: juejin. Im/user / 178526…
Blog: www.cnblogs.com/linguanh/
Making: github.com/af913337456…
Published books:
- 1.0- Blockchain Ethereum DApp Development Combat
- “2.0 — Blockchain DApp Development: Based on Ethereum and Bitcoin Public Chain”
This article will introduce the basic use of the new version of the Ethereum smart contract development tool Remix-IDE in graphic form. After reading this article, developers can use Remix-IDE from writing contract code, debugging, and release purposes.
Since 2018, Remix has developed many versions and features are becoming more and more perfect. The official download link is as follows:
Github.com/ethereum/re…
After downloading, you can directly double-click to open, if the interface needs to be updated, you can wait, the process may appear slow, scientific Internet can speed up.
1. Select a working directory
2. Compile the contract
Above:
compiler
Is the presentation and selection of solidity compiler versions;language
Select the language to compile and solidity;evm version
Select the virtual machine version of Ethereum. The list of options corresponds to the version of Ethereum, for exampleByzantine
,London
,Berlin
, generally used unless specific version debuggingcompiler default
Can.
Click on the blue Compile XXx. sol button to Compile the contract. When successful, Compile information is displayed below, including bytecode and ABI information for the contract. As follows:
The Compilation Details button, when clicked, displays more detailed compiled information, including example code for deploying the contract using Web3.js.
3. Deploy and non-breakpoint debug contracts
The following figure covers more points of analysis, focus on.
View and debug the public methods in the contract
View the data output after the method is called:
4. Rich plug-in installation options
Remix now supports plug-in installation, such as plug-in support for breakpoint testing.
conclusion
Remix-IDE as a whole is relatively easy to use. Compared to other contract authoring tools, beginners recommend using this.