Skip to content

Commit

Permalink
support CREATE2 transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
gretzke committed Oct 9, 2024
1 parent 8910482 commit 88ed2fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion extractor.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ async function extractAndSaveJson(scriptName, chainId, rpcUrl, force, broadcastD
};

// Filter CREATE transactions
const createTransactions = jsonData.transactions.filter((transaction) => transaction.transactionType === "CREATE");
const createTransactions = jsonData.transactions.filter((transaction) => {
return transaction.transactionType === "CREATE" || transaction.transactionType === "CREATE2";
});

// For history
const contracts = {};
Expand Down

0 comments on commit 88ed2fd

Please sign in to comment.