diff --git a/test/StakingRewards.ts b/test/StakingRewards.ts index 76eaacc..f66c944 100644 --- a/test/StakingRewards.ts +++ b/test/StakingRewards.ts @@ -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; @@ -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 }), diff --git a/tsconfig.json b/tsconfig.json index a660367..d4ed7eb 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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"] }