Skip to content

Commit

Permalink
chore(aptos): a hack to support some old aptos events (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
zfy0701 authored Dec 11, 2024
1 parent 27f1e56 commit 7d2df88
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/aptos/src/aptos-chain-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ export class AptosChainAdapter extends ChainAdapter<MoveModuleBytecode, Event |
if (struct.isEvent) {
eventMap.set(typeName, struct)
}
if (struct.name.endsWith('Event')) {
// this is a hack to support some old events
eventMap.set(typeName, struct)
}

structMap.set(qname + SPLITTER + struct.name, struct)
}
Expand Down

0 comments on commit 7d2df88

Please sign in to comment.