Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

Commit

Permalink
fix: gaslimit on BSC could more than 3bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
setunapo authored and brilliant-lx committed Oct 14, 2022
1 parent 4366dd1 commit 03001c0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/models/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ struct HeaderFlags {

difficulty_len: B5,
block_number_len: B3,
gas_limit_len: B3,
gas_used_len: B3,
gas_limit_len: B4,
gas_used_len: B4,
timestamp_len: B3,
base_fee_per_gas_len: B5,

#[skip]
unused: B4,
unused: B2,
}

impl BlockHeader {
Expand Down
12 changes: 6 additions & 6 deletions src/models/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ pub struct LegacyMessageFlags {
is_call: bool,
nonce_len: B3,
gas_price_len: B5,
gas_limit_len: B3,
value_len: B5,
gas_limit_len: B4,
value_len: B4,
}

#[bitfield]
Expand All @@ -230,8 +230,8 @@ pub struct EIP2930MessageFlags {
is_call: bool,
nonce_len: B3,
gas_price_len: B5,
gas_limit_len: B3,
value_len: B5,
gas_limit_len: B4,
value_len: B4,
access_list_size_len: B3,

#[skip]
Expand All @@ -249,8 +249,8 @@ pub struct EIP1559MessageFlags {
nonce_len: B3,
max_priority_fee_per_gas_len: B5,
max_fee_per_gas_len: B5,
gas_limit_len: B3,
value_len: B5,
gas_limit_len: B4,
value_len: B4,
access_list_size_len: B3,
}

Expand Down

0 comments on commit 03001c0

Please sign in to comment.