Skip to content

Commit

Permalink
feat: use typechain binding
Browse files Browse the repository at this point in the history
  • Loading branch information
heueristik committed Feb 6, 2024
1 parent ded453a commit 8d5c04b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/contracts/deploy/1_create_repo/10_create_repo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
PluginRepo__factory,
ENSSubdomainRegistrar__factory,
PluginRepoFactory__factory,
IAddrResolver__factory,
} from '@aragon/osx-ethers';
import {Contract} from 'ethers';
import {ethers} from 'hardhat';
Expand Down Expand Up @@ -88,10 +89,8 @@ func.skip = async (hre: HardhatRuntimeEnvironment) => {
const recordExists = await ens.recordExists(node);

if (recordExists) {
const resolverAddr = await ens.resolver(node);
const resolver = new Contract(
resolverAddr,
['function addr(bytes32 node) external view returns (address payable)'],
const resolver = IAddrResolver__factory.connect(
await ens.resolver(node),
deployer
);
const repoAddr = await resolver.addr(node);
Expand Down

0 comments on commit 8d5c04b

Please sign in to comment.