Skip to content

Commit 1339421

Browse files
committed
fix: ensure storageKeys are initialized for accessList and log errors in transaction verification
1 parent 9ff1468 commit 1339421

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

packages/extension/src/providers/ethereum/libs/transaction/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,11 @@ class Transaction {
165165
formattedFeeHistory,
166166
options.gasPriceType,
167167
);
168+
if (this.tx.accessList) {
169+
this.tx.accessList.forEach(al => {
170+
if (!al.storageKeys) al.storageKeys = [];
171+
});
172+
}
168173
const gasLimit =
169174
this.tx.gasLimit ||
170175
(numberToHex(await this.estimateGas()) as `0x${string}`);
@@ -193,6 +198,7 @@ class Transaction {
193198
chainId: BigInt(this.tx.chainId),
194199
defaultHardfork: Hardfork.London,
195200
});
201+
console.log(feeMarketTx);
196202
let finalizedTransaction = FeeMarketEIP1559Transaction.fromTxData(
197203
feeMarketTx as FinalizedFeeMarketEthereumTransaction,
198204
{

packages/extension/src/providers/ethereum/ui/eth-verify-transaction.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ onBeforeMount(async () => {
380380
selectedFee.value = GasPriceTypes.REGULAR;
381381
})
382382
.catch(e => {
383+
console.log(e);
383384
errorMsg.value = e.message;
384385
})
385386
.finally(() => {

0 commit comments

Comments
 (0)