Skip to content

Commit

Permalink
Allow null type in transaction receipt for legacy type 0 networks (et…
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo authored and Woodpile37 committed Jan 14, 2024
1 parent 17cb96f commit 2d93299
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src.ts/providers/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ const _formatTransactionReceipt = object({
cumulativeGasUsed: getBigInt,
effectiveGasPrice: allowNull(getBigInt),
status: allowNull(getNumber),
type: getNumber
type: allowNull(getNumber, 0)
}, {
effectiveGasPrice: [ "gasPrice" ],
hash: [ "transactionHash" ],
Expand Down

0 comments on commit 2d93299

Please sign in to comment.