Skip to content

Commit

Permalink
Bugfix. Don't modify original Standard ERC20 Transfer ABI.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrés Elizondo committed Jun 5, 2024
1 parent 028985b commit 1e7577a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parsers/events/erc20_transfer_events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function parseERC20TransferEvent(eventLog: LogEntry): ERC20TransferEvent
eRC20TransferEvent.value = new BigNumber(decodedLog.value);
} else if (eventLog.topics.length <= 3) {
// Non-Standard ERC20 Transfer - Any number of topics or data (3 inputs)
var baseInputs = [...STANDARD_ERC20_TRANSFER_ABI.inputs];
var baseInputs = STANDARD_ERC20_TRANSFER_ABI.inputs.map((object) => ({ ...object }));
baseInputs.forEach((inp, index) => {
baseInputs[index].indexed = false;
return baseInputs;
Expand Down

0 comments on commit 1e7577a

Please sign in to comment.