Skip to content

Commit 8768606

Browse files
fix: check if none
Signed-off-by: Ivaylo Nikolov <[email protected]>
1 parent 93cdf80 commit 8768606

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks/evm_hook_call.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ impl FromProtobuf<services::EvmHookCall> for EvmHookCall {
4848
fn from_protobuf(pb: services::EvmHookCall) -> crate::Result<Self> {
4949
Ok(Self {
5050
call_data: if pb.data.is_empty() { None } else { Some(pb.data) },
51-
gas_limit: if pb.gas_limit == 0 { None } else { Some(pb.gas_limit) },
51+
gas_limit: Some(pb.gas_limit),
5252
})
5353
}
5454
}

0 commit comments

Comments
 (0)