eHMND to HMND
The guide to swap eHMND to HMND.
Last updated
The guide to swap eHMND to HMND.
Last updated
Environment to deploy ethereum smart contracts like Remix IDE
Ethereum supported wallet like Metamask
Open the Remix IDE and create a file containing the currency swap precompile interface.
Go to compile
tab and compile the interface.
Go to deploy tab.
Properly select ENVIRONMENT
, ACCOUNT
and CONTRACT
fields.
Use 0x0000000000000000000000000000000000000900
value as an input for Deploy
tab at At Address
field.
Click on Deploy
tab and open Deployed Contracts
tab. You will be able to see a swap
call. The call accepts bytes32
nativeAddress
as an argument to send currency to.
Open Utilities
tab at Polkadot-JS apps connected to Humanode Israfel Testnet.
Convert your native HMND address into bytes32
value.
Copy the value from the hex public key
field and go back to Remix IDE. Input the value as an argument for the swap
call. Input the amount you would like to swap into VALUE
field. Keep in mind, that you should input the amount with 18 point decimals value in case using Wei
.
Finally, perform the swap by clicking on the swap
call and confirm the transaction.
Check the balance on the Polkadot-JS app.