diff --git a/lib/ain-grpc/src/rpc/eth.rs b/lib/ain-grpc/src/rpc/eth.rs index d248c11223..6c3767034e 100644 --- a/lib/ain-grpc/src/rpc/eth.rs +++ b/lib/ain-grpc/src/rpc/eth.rs @@ -316,6 +316,7 @@ impl MetachainRPCServer for MetachainRPCModule { value, data, input, + access_list, .. } = input; let TxResponse { data, .. } = self @@ -333,7 +334,7 @@ impl MetachainRPCServer for MetachainRPCModule { .map(|d| d.0) .unwrap_or(data.map(|d| d.0).unwrap_or_default()), gas_limit: gas.unwrap_or(MAX_GAS_PER_BLOCK).as_u64(), - access_list: vec![], + access_list: access_list.unwrap_or_default(), block_number: self.block_number_to_u256(block_number)?, }) .map_err(|e| Error::Custom(format!("Error calling EVM : {e:?}")))?; @@ -716,6 +717,7 @@ impl MetachainRPCServer for MetachainRPCModule { gas, value, data, + access_list, .. } = input; @@ -729,7 +731,7 @@ impl MetachainRPCServer for MetachainRPCModule { value: value.unwrap_or_default(), data: &data.map(|d| d.0).unwrap_or_default(), gas_limit: gas.unwrap_or(MAX_GAS_PER_BLOCK).as_u64(), - access_list: vec![], + access_list: access_list.unwrap_or_default(), block_number, }) .map_err(|e| Error::Custom(format!("Error calling EVM : {e:?}")))?;