From 4269ab2d9baf9004f562843cd3712a844a915cf0 Mon Sep 17 00:00:00 2001 From: Inkvi Date: Thu, 27 Jun 2024 13:54:03 -0700 Subject: [PATCH] Check for accessListLength to determine tx type --- src/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.ts b/src/server.ts index 9da5568..5f35b65 100644 --- a/src/server.ts +++ b/src/server.ts @@ -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';