-
Notifications
You must be signed in to change notification settings - Fork 41
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: add rpc endpoint eth_getCode
#162
Conversation
…-block-number-table
…-block-number-table
@@ -80,6 +83,15 @@ impl StoreEngine for Store { | |||
fn get_block_number(&self, block_hash: BlockHash) -> Result<Option<BlockNumber>, StoreError> { | |||
Ok(self.block_numbers.get(&block_hash).copied()) | |||
} | |||
|
|||
fn add_account_code(&mut self, code_hash: H256, code: Bytes) -> Result<(), StoreError> { |
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.
question: why don't we have to specify pub
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.
It is part of a trait implementation, so it has the same visibility as the trait (which is public in this case)
Based on lambdaclass#160 **Motivation** Support rpc endpoint `eth_getCode` **Description** * Add rpc endpoint `eth_getCode` * Add methods to obtain account code to `Store` api <!-- A clear and concise general description of the changes this PR introduces --> <!-- Link to issues: Resolves lambdaclass#111, Resolves lambdaclass#222 --> Closes lambdaclass#38
Based on #160
Motivation
Support rpc endpoint
eth_getCode
Description
eth_getCode
Store
apiCloses #38