File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -738,19 +738,19 @@ impl EthApi {
738
738
& self ,
739
739
address : Address ,
740
740
block_number : Option < BlockId > ,
741
- ) -> Result < serde_json :: Value > {
741
+ ) -> Result < alloy_rpc_types :: eth :: AccountInfo > {
742
742
node_info ! ( "eth_getAccountInfo" ) ;
743
743
let account = self
744
744
. backend
745
745
. get_account_at_block ( address, Some ( self . block_request ( block_number) . await ?) )
746
746
. await ?;
747
747
let code =
748
748
self . backend . get_code ( address, Some ( self . block_request ( block_number) . await ?) ) . await ?;
749
- Ok ( serde_json :: json! ( {
750
- " balance" : account. balance,
751
- " nonce" : account. nonce,
752
- " code" : code
753
- } ) )
749
+ Ok ( alloy_rpc_types :: eth :: AccountInfo {
750
+ balance : account. balance ,
751
+ nonce : account. nonce ,
752
+ code,
753
+ } )
754
754
}
755
755
/// Returns content of the storage at given address.
756
756
///
You can’t perform that action at this time.
0 commit comments