Since the DVM and the Ethereum virtual machine are compatible in the underlying specifications, users can use the the existing contract development tools of Ethereum ecosystem. Here we will introduce how to use Remix to execute contracts.
Compile to compile the program and make sure it compiles successfully.
Remix can use a DVM account on Metamask and deploy the contract directly to the corresponding network. Note that DVM accounts need to be bound to Metamask first, see Using Metamask with DVM accounts. ENVIRONMENT Select
Injected Web3, select the DVM account in the Metamask pop-up window and click
Once you have successfully connected to Metamask, click
Deploy to deploy the contract and the console will display the execution process of the transaction.
When the contract is successfully deployed, Click
number to make a contract call, which returns 0.
increment to make another call.
number again to make a contract call, and the result is 5 now.