@@ -47,28 +47,28 @@ describe("DisputeKitGated", async () => {
4747 fallbackToGlobal : true ,
4848 keepExistingDeployments : false ,
4949 } ) ;
50- disputeKitGated = ( await ethers . getContract ( "DisputeKitGated" ) ) as DisputeKitGated ;
51- pnk = ( await ethers . getContract ( "PNK" ) ) as PNK ;
52- dai = ( await ethers . getContract ( "DAI" ) ) as TestERC20 ;
53- core = ( await ethers . getContract ( "KlerosCore" ) ) as KlerosCore ;
54- sortitionModule = ( await ethers . getContract ( "SortitionModule" ) ) as SortitionModule ;
50+ disputeKitGated = await ethers . getContract < DisputeKitGated > ( "DisputeKitGated" ) ;
51+ pnk = await ethers . getContract < PNK > ( "PNK" ) ;
52+ dai = await ethers . getContract < TestERC20 > ( "DAI" ) ;
53+ core = await ethers . getContract < KlerosCore > ( "KlerosCore" ) ;
54+ sortitionModule = await ethers . getContract < SortitionModule > ( "SortitionModule" ) ;
5555
5656 // Make the tests more deterministic with this dummy RNG
5757 await deployments . deploy ( "IncrementalNG" , {
5858 from : deployer ,
5959 args : [ RANDOM ] ,
6060 log : true ,
6161 } ) ;
62- rng = ( await ethers . getContract ( "IncrementalNG" ) ) as IncrementalNG ;
62+ rng = await ethers . getContract < IncrementalNG > ( "IncrementalNG" ) ;
6363
6464 await sortitionModule . changeRandomNumberGenerator ( rng . target ) . then ( ( tx ) => tx . wait ( ) ) ;
6565
6666 const hre = require ( "hardhat" ) ;
6767 await deployERC721 ( hre , deployer , "TestERC721" , "Nft721" ) ;
68- nft721 = ( await ethers . getContract ( "Nft721" ) ) as TestERC721 ;
68+ nft721 = await ethers . getContract < TestERC721 > ( "Nft721" ) ;
6969
7070 await deployERC1155 ( hre , deployer , "TestERC1155" , "Nft1155" ) ;
71- nft1155 = ( await ethers . getContract ( "Nft1155" ) ) as TestERC1155 ;
71+ nft1155 = await ethers . getContract < TestERC1155 > ( "Nft1155" ) ;
7272 await nft1155 . mint ( deployer , TOKEN_ID , 1 , "0x00" ) ;
7373 } ) ;
7474
0 commit comments