Hi guys, hope you are having a good day/night whereever you are. Anyone know how to approve token in smart contract using solidity in remix ?? Once approved I would like to use transfer function to send tokens from smart contract to my address
Jan 3, 2021, 1:51 AM
Look at contracts like for example the EtherDelta contract to understand how it works. https://etherscan.io/address/0x8d12a197cb00d4747a1fe03395095ce2a5cc6819#code
The interesting parts here for you are depositToken(). Disclaimer: I take no responsibility for usage of their code. It can have vulnerabilities.
The interesting parts here for you are depositToken(). Disclaimer: I take no responsibility for usage of their code. It can have vulnerabilities.
Jan 3, 2021, 2:28 PM