-
Notifications
You must be signed in to change notification settings - Fork 38
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
feat: Erc20Wrapper extension #498
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for contracts-stylus canceled.
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good progess @Ifechukwudaniel, please focus on now:
- Increasing E2E test coverage
- Improving Rust docs
- Solving all clippy warnings.
// ============================================================================ | ||
|
||
#[e2e::test] | ||
async fn constructs(alice: Account) -> Result<()> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Increase E2E test coverage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ifechukwudaniel CI does not pass. Please fix it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments.
//! number of "wrapped tokens". This is useful in conjunction with other | ||
//! modules. | ||
//! | ||
//! WARNING: Any mechanism in which the underlying token changes the {balanceOf} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adjust the docs to the current implementation. We do not have balanceOf
function.
#[allow(missing_docs)] | ||
error ERC20InvalidUnderlying(address token); | ||
|
||
/// Indicates that the address is not an Invalid Sender address. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe there is sth wrong with this docs...
#[allow(missing_docs)] | ||
error ERC20InvalidSender(address sender); | ||
|
||
/// Indicates that The address is not a valid Invalid Asset. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe there is sth wrong with this docs...
} | ||
} | ||
|
||
// TODO: Add missing tests once `motsu` supports calling external contracts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should have motsu version that support calling external contracts tomorrow :)
It is already merged into main branch of mostu. You can implement these test cases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implement missing E2E test cases. Each scenario must be covered.
Co-authored-by: Daniel Bigos <[email protected]>
Co-authored-by: Daniel Bigos <[email protected]>
Co-authored-by: Daniel Bigos <[email protected]>
Co-authored-by: Daniel Bigos <[email protected]>
test
Co-authored-by: Daniel Bigos <[email protected]>
Co-authored-by: Daniel Bigos <[email protected]>
I have been kind of on another project, but I will do my best to round this up asap |
Co-authored-by: Daniel Bigos <[email protected]>
Resolves #354
PR Checklist