-
Notifications
You must be signed in to change notification settings - Fork 382
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(AU): charge storage fee and add initial CE #1058
Conversation
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.
LGTM for the pallet side 👍, left some minor comments/suggestions.
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.
UA pallet benchmark needs an update.
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.
LGTM
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.
Looks good overall. Small suggestions.
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.
LGTM!
@Dinonard could you also have a final review? Thanks!
// write to buffer | ||
(evm_address, is_mapped).using_encoded(|r| env.write(r, false, None))?; |
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.
This doesn't look really Rust-like to me.
Returning an enum
would be more appropriate: (Mapped(address), Default(address)
).
That also makes it more extensible for the future (not sure how we'd need it, but in general).
Anyhow, if others are ok with the proposed solution, you can ignore this comment.
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 like the rust way too.
I'll update the PR tomorrow with changes.
cc: @PierreOssun @shaunxw
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.
Agree, the enum
one looks better.
@PierreOssun the CE interface in ink! can get the decoded enum
type without extra work in SDK right? Pls correct me if I'm wrong.
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've updated the CE with enum, please have a look
the CE interface in ink! can get the decoded enum type without extra work in SDK right?
Yes, as long as it supports scale decode it'll be fine, I've updated the test ink! contracts here.
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.
LGTM, just one minor comment.
Minimum allowed line rate is |
Fix #1045
Ref #1055 (CE part)
Pull Request Summary
pallet-unified-accounts
to be consumed bypallet-contracts
contractsUnifiedAccountMapper
trait.astar-test-utils
and use common wasm contracts folder.TODO