@@ -3,12 +3,17 @@ import hre, { ethers } from "hardhat";
33import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers" ;
44import { TWFactory , Marketplace } from "typechain" ;
55
6+ import { nativeTokenWrapper } from "../../utils/nativeTokenWrapper" ;
7+
68async function main ( ) {
9+
10+ const chainId : number = hre . network . config . chainId as number ;
11+
712 const [ caller ] : SignerWithAddress [ ] = await ethers . getSigners ( ) ;
813
9- const nativeTokenWrapperAddress : string = ethers . constants . AddressZero ; // replace
14+ const nativeTokenWrapperAddress : string = nativeTokenWrapper [ chainId ] ;
1015 const twFeeAddress : string = ethers . constants . AddressZero ; // replace
11- const twFactoryAddress : string = ethers . constants . AddressZero ; // replace
16+ const twFactoryAddress : string = ethers . constants . AddressZero ; // replace Fantom: 0x97EA0Fcc552D5A8Fb5e9101316AAd0D62Ea0876B rest: 0x5DBC7B840baa9daBcBe9D2492E45D7244B54A2A0
1217
1318 const twFactory : TWFactory = await ethers . getContractAt ( "TWFactory" , twFactoryAddress ) ;
1419
@@ -21,7 +26,7 @@ async function main() {
2126 }
2227 const marketplace : Marketplace = await ethers
2328 . getContractFactory ( "Marketplace" )
24- . then ( f => f . deploy ( nativeTokenWrapperAddress , twFeeAddress ) ) ;
29+ . then ( f => f . deploy ( nativeTokenWrapperAddress , twFeeAddress , { gasPrice : ethers . utils . parseUnits ( "300" , "gwei" ) } ) ) ;
2530
2631 console . log (
2732 "Deploying Marketplace \ntransaction: " ,
@@ -30,6 +35,8 @@ async function main() {
3035 marketplace . address ,
3136 ) ;
3237
38+ await marketplace . deployed ( ) ;
39+
3340 console . log ( "\n" ) ;
3441
3542 const addImplementationTx = await twFactory . addImplementation ( marketplace . address ) ;
0 commit comments