Skip to content

Commit

Permalink
Check for accessListLength to determine tx type
Browse files Browse the repository at this point in the history
  • Loading branch information
Inkvi committed Jun 27, 2024
1 parent ce7e715 commit 4269ab2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ async function handleEthSignTransaction(transactionArgs: TransactionArgs) {
transactionArgs.type = '0x0';
}

if (transactionArgs.accessList) {
if (transactionArgs.accessList && transactionArgs.accessList.length > 0) {
transactionArgs.type = '0x1';
} else if (transactionArgs.blobVersionedHashes && transactionArgs.blobVersionedHashes.length > 0) {
transactionArgs.type = '0x3';
Expand Down

0 comments on commit 4269ab2

Please sign in to comment.