Skip to content

Commit

Permalink
fix(aptos): blacklist two deprecated event type (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
zfy0701 authored Nov 23, 2024
1 parent 4e767db commit 17834e7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/aptos/src/aptos-chain-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ export class AptosChainAdapter extends ChainAdapter<MoveModuleBytecode, Event |
const qname = moduleQname(module)
for (const struct of module.structs) {
const typeName = qname + SPLITTER + struct.name
// deprecated v2 event
if (typeName == '0x1::coin::Deposit' || typeName == '0x1::coin::Withdraw') {
continue
}

if (struct.isEvent) {
eventMap.set(typeName, struct)
}
Expand Down

0 comments on commit 17834e7

Please sign in to comment.