-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
chore: use correct type in getAccount
#10023
Conversation
@@ -8,6 +8,7 @@ use reth_codecs::{reth_codec, Compact}; | |||
use revm_primitives::{AccountInfo, Bytecode as RevmBytecode, JumpTable}; | |||
use serde::{Deserialize, Serialize}; | |||
|
|||
pub use alloy_consensus::Account as AccountTrie; |
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.
Sincerely, I don't think this name is idiomatic. I think we can found a better name for it 👍🏻
crates/rpc/rpc-eth-api/src/core.rs
Outdated
@@ -250,7 +250,7 @@ pub trait EthApi { | |||
|
|||
/// Returns the account details by specifying an address and a block number/tag | |||
#[method(name = "getAccount")] | |||
async fn get_account(&self, address: Address, block: BlockId) -> RpcResult<Account>; | |||
async fn get_account(&self, address: Address, block: BlockId) -> RpcResult<AccountTrie>; |
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.
async fn get_account(&self, address: Address, block: BlockId) -> RpcResult<AccountTrie>; | |
async fn get_account(&self, address: Address, block: BlockId) -> RpcResult<reth_rpc_types::Account>; |
crates/rpc/rpc-eth-api/src/core.rs
Outdated
@@ -626,7 +626,7 @@ where | |||
} | |||
|
|||
/// Handler for: `eth_getAccount` | |||
async fn get_account(&self, _address: Address, _block: BlockId) -> RpcResult<Account> { | |||
async fn get_account(&self, _address: Address, _block: BlockId) -> RpcResult<AccountTrie> { |
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.
async fn get_account(&self, _address: Address, _block: BlockId) -> RpcResult<AccountTrie> { | |
async fn get_account(&self, _address: Address, _block: BlockId) -> RpcResult<reth_rpc_types::Account> { |
|
Closes #9637