Solidity code written on Remix IDE: https://remix.ethereum.org/#optimize=false&runs=200&evmVersion=null&version=soljson-v0.5.17+commit.d19bba13.js Deployment done using Ganache and myetherwallet: https://www.trufflesuite.com/ganache https://github.com/MyEtherWallet/etherwallet/releases/
- Copy the Remix code in IDE and save
- Copy the ABI and ByteCode (only the byte code and not the opcode)
- Open the my ether wallet and Add custom Network Node as shown in following image
- In URL and Port use RPC Server address as shown in following image
- Go to contracts and deploy the contract
- Use the Byte code generated from remix, then select the public key option
- Then use any public key aka ADDRESS from ganache, just press on the key icon and copy the private key in myEtherWallet.com. Deploy it.
- Now in ganache the TX tag will be incremented by 1 and a block will be added
- Then go back to Interact with contract as the code is deployed and in contract address paste the same from ganache ( Block 1--> Tx Hash -->Created contract address)
- Then copy the ABI from Remix ide and paste in myetherwallet ABI textbox
- After accessing you can use all the functions and make trasaction and use the address from Ganache to execute any new trasactions