Skip to content

Commit

Permalink
add MINTER_ROLE to SoulboundIdentity SC
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelcabot committed Aug 23, 2022
1 parent 56f7497 commit 2a30555
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions deploy/SoulName.ts
Expand Up @@ -31,10 +31,20 @@ const func: DeployFunction = async ({
"SoulboundIdentity",
soulboundIdentity.address
);
const soulNameContract = await ethers.getContractAt(
"SoulName",
soulNameDeploymentResult.address
);

const MINTER_ROLE = await soulNameContract.MINTER_ROLE();

await soulboundIdentityContract
.connect(owner)
.setSoulNameContract(soulNameDeploymentResult.address);
await soulNameContract.connect(owner).grantRole(
MINTER_ROLE,
soulboundIdentityContract.address
);

await ethers.getContractAt("SoulName", soulNameDeploymentResult.address);
};
Expand Down

0 comments on commit 2a30555

Please sign in to comment.