File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -1708,16 +1708,17 @@ impl EthApi {
1708
1708
pub async fn anvil_metadata ( & self ) -> Result < AnvilMetadata > {
1709
1709
node_info ! ( "anvil_metadata" ) ;
1710
1710
let fork_config = self . backend . get_fork ( ) ;
1711
-
1711
+ let chain_id_uint = U256 :: from ( self . backend . chain_id ( ) . low_u64 ( ) ) ;
1712
+ let latest_block_number_uint = U64 :: from ( self . backend . best_number ( ) . low_u64 ( ) ) ;
1712
1713
Ok ( AnvilMetadata {
1713
1714
client_version : CLIENT_VERSION ,
1714
- chain_id : self . backend . chain_id ( ) ,
1715
+ chain_id : chain_id_uint ,
1715
1716
latest_block_hash : self . backend . best_hash ( ) ,
1716
- latest_block_number : self . backend . best_number ( ) ,
1717
+ latest_block_number : latest_block_number_uint ,
1717
1718
instance_id : * self . instance_id . read ( ) ,
1718
1719
forked_network : fork_config. map ( |cfg| ForkedNetwork {
1719
- chain_id : cfg. chain_id ( ) . into ( ) ,
1720
- fork_block_number : cfg. block_number ( ) . into ( ) ,
1720
+ chain_id : U256 :: from ( cfg. chain_id ( ) ) ,
1721
+ fork_block_number : U64 :: from ( cfg. block_number ( ) ) ,
1721
1722
fork_block_hash : cfg. block_hash ( ) ,
1722
1723
} ) ,
1723
1724
} )
You can’t perform that action at this time.
0 commit comments