-
Notifications
You must be signed in to change notification settings - Fork 77
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: EVM account binding #761
Conversation
New crates:
Crate versions that have been updated:
Runtime version has been increased. |
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.
some suggestions
} | ||
|
||
/// Return the Substrate address bound to the EVM account. If not bound, returns `None`. | ||
pub fn bound_account_id(evm_address: EvmAddress) -> Option<T::AccountId> { |
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 does not bound the account. i would suggest not to use a verb. Something like
bounded_account_id
would be more clear
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.
It's not bind
, so I believe it's ok as it is.
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.
bound is also a verb;-)
anyway, i find the wording bit too dificult to understand. there are functions named - get bound account, get truncated account, get account id, evm addres ...
without looking at the params - it kinda hard to understand what each one does.
Co-authored-by: Martin Hloska <[email protected]>
Co-authored-by: Martin Hloska <[email protected]>
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.
please make sure the EVM transactions are not accepted for bound accounts (bound account can only submit EVM transactions through extrinsics)
No description provided.