Skip to content

Commit

Permalink
fix: types and TS config
Browse files Browse the repository at this point in the history
  • Loading branch information
0xApotheosis committed Sep 11, 2024
1 parent 0a0031e commit 5b9601d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
10 changes: 8 additions & 2 deletions test/StakingRewards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ import {
symbol = 'ABC',
supply = 1e8,
skipInitialAllocation = false,
}: {
accounts: { account: { address: string } }[];
synth?: string;
name?: string;
symbol?: string;
supply?: number;
skipInitialAllocation?: boolean;
}) {
const [deployerAccount, owner] = accounts;

Expand All @@ -36,11 +43,10 @@ import {
];

if (synth) {
tokenArgs.push(toBytes(synth));
tokenArgs.push(synth);
}

const token = await hre.viem.deployContract(synth ? 'MockSynth' : 'PublicEST', tokenArgs);

await Promise.all([
tokenState.write.setAssociatedContract([token.address], { account: owner.account }),
proxy.write.setTarget([token.address], { account: owner.account }),
Expand Down
7 changes: 5 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
"resolveJsonModule": true
"resolveJsonModule": true,
"types": ["node", "@nomicfoundation/hardhat-viem"]
},
"include": ["test/**/*"]
"include": ["test/**/*"],
"exclude": ["node_modules"],
"files": ["hardhat.config.ts"]
}

0 comments on commit 5b9601d

Please sign in to comment.