From 8babe327db2e965498321c7369a8673317e3f40a Mon Sep 17 00:00:00 2001 From: steven2308 Date: Wed, 10 Apr 2024 10:09:31 -0500 Subject: [PATCH] Makes getAssetMetadata implementation on AbstractMultiAsset virtual. --- contracts/RMRK/multiasset/AbstractMultiAsset.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/RMRK/multiasset/AbstractMultiAsset.sol b/contracts/RMRK/multiasset/AbstractMultiAsset.sol index b90fbe72..6c41ab08 100644 --- a/contracts/RMRK/multiasset/AbstractMultiAsset.sol +++ b/contracts/RMRK/multiasset/AbstractMultiAsset.sol @@ -45,7 +45,7 @@ abstract contract AbstractMultiAsset is Context, IERC5773 { function getAssetMetadata( uint256 tokenId, uint64 assetId - ) public view override returns (string memory metadata) { + ) public view virtual override returns (string memory metadata) { // Allow to get the asset metadata without a token having it: if (tokenId != 0 && !_tokenAssets[tokenId][assetId]) revert RMRKTokenDoesNotHaveAsset();