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 {
738738 & self ,
739739 address : Address ,
740740 block_number : Option < BlockId > ,
741- ) -> Result < serde_json :: Value > {
741+ ) -> Result < alloy_rpc_types :: eth :: AccountInfo > {
742742 node_info ! ( "eth_getAccountInfo" ) ;
743743 let account = self
744744 . backend
745745 . get_account_at_block ( address, Some ( self . block_request ( block_number) . await ?) )
746746 . await ?;
747747 let code =
748748 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+ } )
754754 }
755755 /// Returns content of the storage at given address.
756756 ///
You can’t perform that action at this time.
0 commit comments