Skip to content

Commit

Permalink
Fix Authorization fields name to v, r, s
Browse files Browse the repository at this point in the history
  • Loading branch information
jangko committed Oct 15, 2024
1 parent 470baf8 commit 79e5668
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions eth/common/headers.nim
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ type
## AKA mix_digest in some specs - Hash32 in the eth API but Bytes32 in
## the execution API and spec!
nonce*: Bytes8
baseFeePerGas*: Opt[UInt256] # EIP-1559
withdrawalsRoot*: Opt[Hash32] # EIP-4895
blobGasUsed*: Opt[uint64] # EIP-4844
excessBlobGas*: Opt[uint64] # EIP-4844
baseFeePerGas*: Opt[UInt256] # EIP-1559
withdrawalsRoot*: Opt[Hash32] # EIP-4895
blobGasUsed*: Opt[uint64] # EIP-4844
excessBlobGas*: Opt[uint64] # EIP-4844
parentBeaconBlockRoot*: Opt[Hash32] # EIP-4788
requestsRoot*: Opt[Hash32] # EIP-7685
requestsHash*: Opt[Hash32] # EIP-7685

# starting from EIP-4399, `mixDigest` field is called `prevRandao`
template prevRandao*(h: Header): Bytes32 =
Expand Down
6 changes: 3 additions & 3 deletions eth/common/transactions.nim
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ type
chainId*: ChainId
address*: Address
nonce*: AccountNonce
yParity*: uint64
R*: UInt256
S*: UInt256
v*: uint64
r*: UInt256
s*: UInt256

TxType* = enum
TxLegacy # 0
Expand Down

0 comments on commit 79e5668

Please sign in to comment.