Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example for this project #29

Open
damianlluch opened this issue Nov 11, 2021 · 3 comments
Open

Example for this project #29

damianlluch opened this issue Nov 11, 2021 · 3 comments

Comments

@damianlluch
Copy link

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

@damianlluch
Copy link
Author

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

@damianlluch
Copy link
Author

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);
    }
}

@That1bull-BK
Copy link

That’s what I’m saying; I just don’t want lose everything over nothing, if this can’t be validated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants