Fix RLP encoding of gas price (#408)

This commit is contained in:
Oliver Nordbjerg 2021-08-27 10:09:34 +02:00 committed by GitHub
parent 38175c4b1a
commit 72c77dd0cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ impl Transaction {
let mut rlp = RlpStream::new(); let mut rlp = RlpStream::new();
rlp.begin_list(NUM_TX_FIELDS); rlp.begin_list(NUM_TX_FIELDS);
rlp.append(&self.nonce); rlp.append(&self.nonce);
rlp.append(&self.gas_price); rlp_opt(&mut rlp, &self.gas_price);
rlp.append(&self.gas); rlp.append(&self.gas);
#[cfg(feature = "celo")] #[cfg(feature = "celo")]