@@ -311,12 +311,11 @@ contract GamePasses is
311
311
* - trustedForwarder: Address of the trusted meta-transaction forwarder.
312
312
* - defaultTreasury: Address of the default treasury wallet.
313
313
* - owner: Address that will be set as the internal owner.
314
- * - sandContract: Address of the SAND contract.
315
314
*/
316
315
function initialize (InitParams calldata params ) external initializer {
317
316
__ERC2771Handler_init (params.trustedForwarder);
318
317
__AccessControl_init ();
319
- __ERC1155_init (params.baseURI );
318
+ __ERC1155_init ("" );
320
319
__ERC1155Supply_init ();
321
320
__ERC2981_init ();
322
321
__Pausable_init ();
@@ -336,7 +335,6 @@ contract GamePasses is
336
335
337
336
CoreStorage storage cs = _coreStorage ();
338
337
cs.paymentToken = params.paymentToken;
339
- cs.baseURI = params.baseURI;
340
338
cs.defaultTreasuryWallet = params.defaultTreasury;
341
339
cs.internalOwner = params.owner;
342
340
cs.DOMAIN_SEPARATOR = keccak256 (
@@ -1074,12 +1072,11 @@ contract GamePasses is
1074
1072
/**
1075
1073
* @notice Returns the metadata URI for a specific token ID
1076
1074
* @param tokenId ID of the token to get URI for
1077
- * @dev Constructs the URI by concatenating baseURI + tokenId + ".json"
1078
- * @dev Can be overridden by derived contracts to implement different URI logic
1079
- * @return string The complete URI for the token metadata
1075
+ * @dev Returns the token-specific metadata string stored in the token configuration
1076
+ * @return string The metadata URI for the token
1080
1077
*/
1081
1078
function uri (uint256 tokenId ) public view virtual override returns (string memory ) {
1082
- return string ( abi.encodePacked ( _coreStorage ().baseURI, tokenId. toString (), " .json " )) ;
1079
+ return _tokenStorage ().tokenConfigs[ tokenId].metadata ;
1083
1080
}
1084
1081
1085
1082
/**
0 commit comments