-
Notifications
You must be signed in to change notification settings - Fork 84
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: Implemented EOA Constructor and get_evm_address #230
Feat: Implemented EOA Constructor and get_evm_address #230
Conversation
Snapshot Comparison Report: No changes in gas consumption. |
I do see that we had in the cairo0 impl a |
} | ||
|
||
#[external(v0)] | ||
impl ExternallyOwnedAccount of super::IExternallyOwnedAccount<ContractState> { | ||
/// Returns an empty span, required for the EXTCODE opcode | ||
fn get_evm_address(self: @ContractState) -> EthAddress { |
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.
If we have a common library for both EOAs and Account contracts, I'd rather make an external component for that to share code and avoid maintaining twice the same thing. Should be ready next week-ish
Putting this PR review on hold until we have Cairo Components in SSJ |
Closing this for now as it's outdated |
Implemented the constructor for EOA (previously initialize()):
https://github.com/kkrt-labs/kakarot/blob/c0c80301d4dfe384247b423a3bc2726522b5d1a8/src/kakarot/accounts/eoa/externally_owned_account.cairo#L15
And get_evm_address function:
https://github.com/kkrt-labs/kakarot/blob/c0c80301d4dfe384247b423a3bc2726522b5d1a8/src/kakarot/accounts/eoa/externally_owned_account.cairo#L117
Pull Request type
Please check the type of change your PR introduces:
What is the current behavior?
Resolves: #216 #211
What is the new behavior?
Does this introduce a breaking change?