Skip to content

Commit

Permalink
Makes accessList readonly.
Browse files Browse the repository at this point in the history
They should have been all along as immutability is good.
  • Loading branch information
MicahZoltu committed Jun 4, 2023
1 parent f0ef978 commit 1cb3c29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions source/transaction-1559.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export type Transaction1559Unsigned = {
readonly to: bigint | null
readonly value: bigint
readonly data: Uint8Array
readonly accessList: [bigint, bigint[]][]
readonly accessList: readonly (readonly [bigint, readonly bigint[]])[]
}
export type Transaction1559Signed = Transaction1559Unsigned & {
readonly yParity: bigint
Expand All @@ -33,7 +33,7 @@ export type JsonTransaction1559Unsigned = {
readonly to: string | null
readonly value: string
readonly data: string
readonly accessList: [string, string[]][]
readonly accessList: readonly (readonly [string, readonly string[]])[]
}
export type JsonTransaction1559Signed = JsonTransaction1559Unsigned & {
readonly yParity: string
Expand Down
4 changes: 2 additions & 2 deletions source/transaction-2930.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export type Transaction2930Unsigned = {
readonly to: bigint | null
readonly value: bigint
readonly data: Uint8Array
readonly accessList: [bigint, bigint[]][]
readonly accessList: readonly (readonly [bigint, readonly bigint[]])[]
}
export type Transaction2930Signed = Transaction2930Unsigned & {
readonly yParity: bigint
Expand All @@ -31,7 +31,7 @@ export type JsonTransaction2930Unsigned = {
readonly to: string | null
readonly value: string
readonly data: string
readonly accessList: [string, string[]][]
readonly accessList: readonly (readonly [string, readonly string[]])[]
}
export type JsonTransaction2930Signed = JsonTransaction2930Unsigned & {
readonly yParity: string
Expand Down

0 comments on commit 1cb3c29

Please sign in to comment.