@@ -7,7 +7,7 @@ use alloy_rlp_derive::{RlpDecodable, RlpEncodable};
7
7
8
8
use ethabi:: ethereum_types:: { Bloom , H160 , H256 , H64 , U256 } ;
9
9
#[ cfg( feature = "std" ) ]
10
- use ethers:: types:: Block ;
10
+ use ethers:: types:: { Block , U64 } ;
11
11
use ismp:: util:: Keccak256 ;
12
12
13
13
#[ derive( RlpDecodable , RlpEncodable , Debug , Clone ) ]
@@ -88,12 +88,12 @@ impl From<Block<H256>> for CodecHeader {
88
88
withdrawals_hash : block. withdrawals_root ,
89
89
blob_gas_used : block
90
90
. other
91
- . get_deserialized :: < u64 > ( "blobGasUsed" )
92
- . and_then ( |val| val. ok ( ) ) ,
91
+ . get_deserialized :: < U64 > ( "blobGasUsed" )
92
+ . and_then ( |val| val. ok ( ) . map ( |val| val . as_u64 ( ) ) ) ,
93
93
excess_blob_gas_used : block
94
94
. other
95
- . get_deserialized :: < u64 > ( "excessBlobGas" )
96
- . and_then ( |val| val. ok ( ) ) ,
95
+ . get_deserialized :: < U64 > ( "excessBlobGas" )
96
+ . and_then ( |val| val. ok ( ) . map ( |val| val . as_u64 ( ) ) ) ,
97
97
parent_beacon_root : block
98
98
. other
99
99
. get_deserialized :: < H256 > ( "parentBeaconBlockRoot" )
0 commit comments