Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
bokkypoobah committed Dec 19, 2023
1 parent 5d4cbdd commit 1274601
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -806,10 +806,13 @@ <h5 class="mt-3">Troubleshooting</h5>
// ERC-1155 ApprovalForAll (index_topic_1 address account, index_topic_2 address operator, bool approved)
// 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31
console.log(moment().format("HH:mm:ss") + " syncApprovalEvents BEGIN");

console.log(moment().format("HH:mm:ss") + " syncApprovalEvents - searchCoinbase: " + this.settings.searchCoinbase + ", searchAccounts: " + this.settings.searchAccounts);
this.sync.completed = 0;
this.sync.total = 0;
this.sync.section = 'Approval Events';
const accounts = [this.coinbase];
const accounts = this.settings.searchCoinbase ? [ this.coinbase ] : this.settings.searchAccounts.split(/[, \t\n]+/).filter(name => (name.length == 42 && name.substring(0, 2) == '0x'));
console.log(moment().format("HH:mm:ss") + " syncApprovalEvents - accounts: " + JSON.stringify(accounts));
const accountsAs32Bytes = accounts.map(e => '0x000000000000000000000000' + e.substring(2, 42).toLowerCase());
const approvalLogs = await provider.getLogs({
address: null,
Expand Down

0 comments on commit 1274601

Please sign in to comment.