Skip to content

Commit c1b3594

Browse files
wojciech-turekadjisb
and
adjisb
committed
Remove unnecessary dependecies and simplify max per wallet condition
Co-authored-by: adjisb <[email protected]>
1 parent 40b3bc7 commit c1b3594

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

packages/deploy/deploy/1100_game_passes/1100_deploy_game_passes.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,4 @@ func.tags = [
5656
DEPLOY_TAGS.L2_PROD,
5757
DEPLOY_TAGS.L2_TEST,
5858
];
59-
func.dependencies = [
60-
'OperatorFilterAssetSubscription_deploy',
61-
'TRUSTED_FORWARDER_V2',
62-
'RoyaltyManager_deploy',
63-
];
59+
func.dependencies = ['SandboxForwarder'];

packages/game-passes/contracts/GamePasses.sol

+1-1
Original file line numberDiff line numberDiff line change
@@ -1390,7 +1390,7 @@ contract GamePasses is
13901390
revert ExceedsMaxPerWallet(tokenId, to, amount, 0);
13911391
}
13921392

1393-
if (config.maxPerWallet != type(uint256).max && config.mintedPerWallet[to] > config.maxPerWallet) {
1393+
if (config.mintedPerWallet[to] > config.maxPerWallet) {
13941394
revert ExceedsMaxPerWallet(tokenId, to, amount, config.maxPerWallet);
13951395
}
13961396
}

0 commit comments

Comments
 (0)