Skip to content

Commit

Permalink
emit MintedToIdentity and MintedToAddress of self sovereign
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelcabot committed Nov 6, 2023
1 parent cdc9e15 commit 13e566c
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions contracts/reference/ReferenceSBTDynamicSelfSovereign.sol
Expand Up @@ -220,7 +220,14 @@ contract ReferenceSBTDynamicSelfSovereign is
) internal virtual returns (uint256) {
address to = soulboundIdentity.ownerOf(identityId);
uint256 tokenId = MasaSBT._mintWithCounter(paymentMethod, to);
emit MintedToIdentity(tokenId, identityId);
emit MintedToIdentity(
tokenId,
identityId,
address(0),
0,
address(0),
0
);

return tokenId;
}
Expand All @@ -230,16 +237,12 @@ contract ReferenceSBTDynamicSelfSovereign is
address to
) internal virtual override returns (uint256) {
uint256 tokenId = MasaSBT._mintWithCounter(paymentMethod, to);
emit MintedToAddress(tokenId, to);
emit MintedToAddress(tokenId, to, address(0), 0, address(0), 0);

return tokenId;
}

/* ========== MODIFIERS ================================================= */

/* ========== EVENTS ==================================================== */

event MintedToIdentity(uint256 tokenId, uint256 identityId);

event MintedToAddress(uint256 tokenId, address to);
}

0 comments on commit 13e566c

Please sign in to comment.