erc20-meta-token
erc20-meta-token copied to clipboard
Example for this project
Do you have an example of implementation of this contract? In the readme there is only an example of a function call. If you can share a complete example.
Thanks
The example refers to this contract which does not exist in the repository:
'import '@0xsequence/erc20-meta-token/contracts/interfaces/IMetaERC20Wrapper.sol';
Where is this contract?
thanks
I was able to compile the basic example by modifying the contract in this way... It would be interesting if someone could confirm that this modification is well done.
pragma solidity ^0.7.4;
import '@0xsequence/erc20-meta-token/contracts/interfaces/IERC20Wrapper.sol';
contract ERC20Wrapper {
function f(address payable wrapperAddress, address ERC20tokenAddress, uint256 amount) public {
IERC20Wrapper(wrapperAddress).deposit(ERC20tokenAddress, msg.sender, amount);
}
}
That’s what I’m saying; I just don’t want lose everything over nothing, if this can’t be validated.