Skip to content

Commit e3ceb05

Browse files
Krishang NadgaudaKrishang Nadgauda
authored andcommitted
update marketplace script to get nativeTokenWrapper by chainId
1 parent 203bb9e commit e3ceb05

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scripts/deploy/marketplace.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ async function main() {
1111

1212
const [caller]: SignerWithAddress[] = await ethers.getSigners();
1313

14-
const nativeTokenWrapperAddress: string = nativeTokenWrapper[chainId]; // replace
14+
const nativeTokenWrapperAddress: string = nativeTokenWrapper[chainId];
1515
const twFeeAddress: string = ethers.constants.AddressZero; // replace
16-
const twFactoryAddress: string = ethers.constants.AddressZero; // replace
16+
const twFactoryAddress: string = ethers.constants.AddressZero; // replace Fantom: 0x97EA0Fcc552D5A8Fb5e9101316AAd0D62Ea0876B rest: 0x5DBC7B840baa9daBcBe9D2492E45D7244B54A2A0
1717

1818
const twFactory: TWFactory = await ethers.getContractAt("TWFactory", twFactoryAddress);
1919

@@ -26,7 +26,7 @@ async function main() {
2626
}
2727
const marketplace: Marketplace = await ethers
2828
.getContractFactory("Marketplace")
29-
.then(f => f.deploy(nativeTokenWrapperAddress, twFeeAddress));
29+
.then(f => f.deploy(nativeTokenWrapperAddress, twFeeAddress, { gasPrice: ethers.utils.parseUnits("300", "gwei") }));
3030

3131
console.log(
3232
"Deploying Marketplace \ntransaction: ",
@@ -35,6 +35,8 @@ async function main() {
3535
marketplace.address,
3636
);
3737

38+
await marketplace.deployed();
39+
3840
console.log("\n");
3941

4042
const addImplementationTx = await twFactory.addImplementation(marketplace.address);

0 commit comments

Comments
 (0)