Skip to content

Commit

Permalink
feat: add recap and correct gatingBadgeTokenId
Browse files Browse the repository at this point in the history
  • Loading branch information
yum0e committed Jan 12, 2023
1 parent a5aaea9 commit ee2aa41
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async function deploymentAction(
name: 'Ziki Pass',
symbol: 'ZKP',
tokenURI: 'https://metadata-zikies.zkdrop.io/ziki-pass/123',
gatingBadgeTokenId: '515',
gatingBadgeTokenId: '10000515',
options,
})) as DeployedZkBadgeboundERC721;

Expand Down
16 changes: 16 additions & 0 deletions tasks/deploy-tasks/tests/deploy-zk-badgebound-erc721.task.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { task } from 'hardhat/config';
import { HardhatRuntimeEnvironment } from 'hardhat/types';
import { getImplementation } from './../../../utils';
import { ZKBadgeboundERC721, ZKBadgeboundERC721__factory } from '../../../types';
import {
afterDeployment,
Expand Down Expand Up @@ -52,6 +53,21 @@ async function deploymentAction(

await afterDeployment(hre, deployer, CONTRACT_NAME, deploymentArgs, deployed, options);
const zkBadgeboundERC721 = ZKBadgeboundERC721__factory.connect(deployed.address, deployer);

if (options?.manualConfirm || options?.log) {
console.log(`
************************************************************
* RECAP *
************************************************************
date: ${new Date().toISOString()}
* ZKBadgeboundERC721:
-> proxy: ${zkBadgeboundERC721.address}
-> implem: ${await getImplementation(zkBadgeboundERC721)}
`);
}

return { zkBadgeboundERC721 };
}

Expand Down

0 comments on commit ee2aa41

Please sign in to comment.