We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a73c156 + 22497d3 commit de26f6cCopy full SHA for de26f6c
1 file changed
contracts/assets/AssetOwnership.sol
@@ -134,9 +134,11 @@ contract AssetOwnership is
134
/// @dev This action is irreversible and restricted to governance control.
135
/// @param assetId The unique identifier of the asset to be revoked.
136
function revoke(uint256 assetId) external restricted {
137
+ address previousOwner = ownerOf(assetId);
138
+
139
_burn(assetId);
140
_disableAsset(assetId);
- emit RevokedAsset(ownerOf(assetId), assetId);
141
+ emit RevokedAsset(previousOwner, assetId);
142
}
143
144
/// @notice Transfers an asset to a new owner.
0 commit comments