Skip to content

Commit

Permalink
Point to current contracts in deploy tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wojciech-turek committed Dec 8, 2023
1 parent 302526c commit 41b929f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions packages/deploy/test/asset/AssetCreate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,18 @@ const setupTest = deployments.createFixture(
await getNamedAccounts();
await deployments.fixture();
const Asset = await deployments.get('Asset');
const AssetContract = await ethers.getContractAt('Asset', Asset.address);
const AssetContract = await ethers.getContractAt(
'@sandbox-smart-contracts/asset/contracts/Asset.sol:Asset',
Asset.address
);
const AssetCreate = await deployments.get('AssetCreate');
const AssetCreateContract = await ethers.getContractAt(
'AssetCreate',
AssetCreate.address
);
const Catalyst = await deployments.get('Catalyst');
const CatalystContract = await ethers.getContractAt(
'Catalyst',
'@sandbox-smart-contracts/asset/contracts/Catalyst.sol:Catalyst',
Catalyst.address
);
const TRUSTED_FORWARDER = await deployments.get('TRUSTED_FORWARDER_V2');
Expand Down
7 changes: 5 additions & 2 deletions packages/deploy/test/asset/AssetReveal.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,18 @@ const setupTest = deployments.createFixture(
await getNamedAccounts();
await deployments.fixture('Asset');
const Asset = await deployments.get('Asset');
const AssetContract = await ethers.getContractAt('Asset', Asset.address);
const AssetContract = await ethers.getContractAt(
'@sandbox-smart-contracts/asset/contracts/Asset.sol:Asset',
Asset.address
);
const AssetReveal = await deployments.get('AssetReveal');
const AssetRevealContract = await ethers.getContractAt(
'AssetReveal',
AssetReveal.address
);
const Catalyst = await deployments.get('Catalyst');
const CatalystContract = await ethers.getContractAt(
'Catalyst',
'@sandbox-smart-contracts/asset/contracts/Catalyst.sol:Catalyst',
Catalyst.address
);
const TRUSTED_FORWARDER = await deployments.get('TRUSTED_FORWARDER_V2');
Expand Down

1 comment on commit 41b929f

@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.65%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/asset/contracts
   Asset.sol95%90%96.88%98.28%117, 208, 310, 310–311, 77
   AssetCreate.sol94.64%84.21%100%100%140, 142, 200, 216, 333, 74
   AssetReveal.sol94.35%86.21%96.55%98.89%143, 147, 181, 376, 416, 424, 441, 75, 98
   AuthSuperValidator.sol90%83.33%100%88.89%51–52
   Catalyst.sol95.39%92.19%96.15%98.39%124, 126, 139, 151, 223, 79
packages/asset/contracts/interfaces
   IAsset.sol100%100%100%100%
   IAssetCreate.sol100%100%100%100%
   IAssetReveal.sol100%100%100%100%
   ICatalyst.sol100%100%100%100%
   ITokenUtils.sol100%100%100%100%
packages/asset/contracts/libraries
   TokenIdUtils.sol100%100%100%100%

Please sign in to comment.