Skip to content

Commit

Permalink
feat: Add operator to approved & unapproved SNS message (#1265)
Browse files Browse the repository at this point in the history
add operator to approved & unnaproved sns message
  • Loading branch information
justraman authored Sep 3, 2024
1 parent c11d947 commit 23fbb6e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mappings/multiTokens/events/approved.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,10 @@ export async function approved(
id: item.id,
name: item.name,
body: {
collectionId: data.collectionId.toString(),
kind: data.tokenId !== undefined ? 'token' : 'collection',
address,
operator: data.operator,
collectionId: data.collectionId.toString(),
tokenId: data.tokenId ? `${data.collectionId}-${data.tokenId}` : null,
extrinsic: item.extrinsic.id,
},
Expand Down
2 changes: 2 additions & 0 deletions src/mappings/multiTokens/events/unapproved.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ export async function unapproved(
id: item.id,
name: item.name,
body: {
kind: data.tokenId !== undefined ? 'token' : 'collection',
address,
operator: data.operator,
collectionId: data.collectionId.toString(),
tokenId: data.tokenId ? `${data.collectionId}-${data.tokenId}` : null,
extrinsic: item.extrinsic.id,
Expand Down

0 comments on commit 23fbb6e

Please sign in to comment.