Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Update destroy and lock events of NFT module #8978

Merged
merged 3 commits into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion framework/src/modules/nft/events/destroy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ export class DestroyEvent extends BaseEvent<DestroyEventData & { result: NftEven
}

public error(ctx: EventQueuer, data: DestroyEventData, result: NftErrorEventResult): void {
this.add(ctx, { ...data, result }, [data.address, data.nftID]);
this.add(ctx, { ...data, result }, [data.address, data.nftID], true);
}
}
2 changes: 1 addition & 1 deletion framework/src/modules/nft/events/lock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ export class LockEvent extends BaseEvent<LockEventData & { result: NftEventResul
}

public error(ctx: EventQueuer, data: LockEventData, result: NftErrorEventResult) {
this.add(ctx, { ...data, result }, [Buffer.from(data.module), data.nftID]);
this.add(ctx, { ...data, result }, [Buffer.from(data.module), data.nftID], true);
}
}