Skip to content

Commit

Permalink
Workaround ncTransactions bug
Browse files Browse the repository at this point in the history
  • Loading branch information
longfin committed Nov 16, 2023
1 parent a2a345a commit d4ab2f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/monitors/assets-transferred-monitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class AssetsTransferredMonitor extends NineChroniclesMonitor<AssetTransfe
await this._headlessGraphQLClient.getBlockHash(blockIndex);
const events =
await this._headlessGraphQLClient.getAssetTransferredEvents(
blockIndex,
blockIndex - 1, // need to wait 1 block far from tip due to 9c headless' bug.
this._address,
);

Expand Down
2 changes: 1 addition & 1 deletion src/monitors/garage-unload-monitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class GarageUnloadMonitor extends NineChroniclesMonitor<GarageUnloadEvent
const blockHash =
await this._headlessGraphQLClient.getBlockHash(blockIndex);
const events = await this._headlessGraphQLClient.getGarageUnloadEvents(
blockIndex,
blockIndex - 1, // need to wait 1 block far from tip due to 9c headless' bug.
this._agentAddress,
this._avatarAddress,
);
Expand Down

0 comments on commit d4ab2f6

Please sign in to comment.