Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
bokkypoobah committed Aug 2, 2024
1 parent efc769a commit 5fb71bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/parseEventLogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ function parseEventLogs(logs, chainId, latestBlockNumber) {
// AddressChanged (index_topic_1 bytes32 node, uint256 coinType, bytes newAddress)
const logData = publicResolverInterface.parseLog(log);
const [node, coinType, newAddress] = logData.args;
eventRecord = { type: "AddressChanged", node, coinType: coinType.toString(), newAddress };
eventRecord = { type: "AddressChanged", node, coinType: coinType.toString(), newAddress: coinType == 60 ? ethers.utils.getAddress(newAddress) : newAddress };
} else if (log.topics[0] == "0xd8c9334b1a9c2f9da342a0a2b32629c1a229b6445dad78947f674b44444a7550") {
// TextChanged (index_topic_1 bytes32 node, index_topic_2 string indexedKey, string key)
const logData = publicResolver2Interface.parseLog(log);
Expand Down

0 comments on commit 5fb71bb

Please sign in to comment.