Skip to content

Commit

Permalink
fix: assetCreate fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
capedcrusader21 committed Sep 9, 2024
1 parent 995f7c3 commit 43761cc
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/deploy/test/asset/assetCreateFixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,17 @@ const setupAssetCreateTests = deployments.createFixture(
const createBatchLazyMintSignature = (data: LazyMintBatchData) =>
createMultipleLazyMintSignature(data, AssetCreateContract, network);

const OrderValidatorAsAdmin = OrderValidatorContract.connect(
await ethers.provider.getSigner(assetAdmin)
);

const ERC20_ROLE = await OrderValidatorContract.ERC20_ROLE();
await OrderValidatorAsAdmin.grantRole(
ERC20_ROLE,
await SandContract.getAddress()
);
await OrderValidatorAsAdmin.disableWhitelists();

return {
AssetContract,
AssetCreateContract,
Expand Down

1 comment on commit 43761cc

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage for this commit

98.09%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/marketplace/contracts
   Exchange.sol94.52%93.33%94.44%96%126, 194, 72
   ExchangeCore.sol98.85%96.67%100%100%85
   OrderValidator.sol96.67%92.31%100%100%109, 36
   RoyaltiesRegistry.sol96.32%88.89%100%98.78%194, 216–217, 263, 65
   TransferManager.sol95.22%85.71%100%99.29%153, 204, 214, 264, 404, 410, 425, 437–438, 449, 93
   Whitelist.sol75.81%60%85.71%82.14%104, 108–109, 122, 125, 141–142, 54, 66, 66–67, 71, 76
packages/marketplace/contracts/interfaces
   IOrderValidator.sol100%100%100%100%
   IRoyaltiesProvider.sol100%100%100%100%
   ITransferManager.sol100%100%100%100%
   IWhitelist.sol100%100%100%100%
packages/marketplace/contracts/libraries
   LibAsset.sol100%100%100%100%
   LibMath.sol100%100%100%100%
   LibOrder.sol100%100%100%100%

Please sign in to comment.