From 72c77dd0cbacfaa790e3fe3747d5e94436dec0bd Mon Sep 17 00:00:00 2001 From: Oliver Nordbjerg Date: Fri, 27 Aug 2021 10:09:34 +0200 Subject: [PATCH] Fix RLP encoding of gas price (#408) --- ethers-core/src/types/transaction/response.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethers-core/src/types/transaction/response.rs b/ethers-core/src/types/transaction/response.rs index 96800afe..f3a044e8 100644 --- a/ethers-core/src/types/transaction/response.rs +++ b/ethers-core/src/types/transaction/response.rs @@ -143,7 +143,7 @@ impl Transaction { let mut rlp = RlpStream::new(); rlp.begin_list(NUM_TX_FIELDS); rlp.append(&self.nonce); - rlp.append(&self.gas_price); + rlp_opt(&mut rlp, &self.gas_price); rlp.append(&self.gas); #[cfg(feature = "celo")]