This repository has been archived by the owner on Nov 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update deployer helper and contract tests
- Loading branch information
Showing
8 changed files
with
65 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 4 additions & 5 deletions
9
contracts/shared/helpers/deployAndRunPrecompileCostEstimator.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
import { BigNumber } from "@ethersproject/bignumber"; | ||
import { ethers } from "hardhat"; | ||
import Create2Factory from "./create2Contract"; | ||
import Create2Fixture from "./Create2Fixture"; | ||
|
||
export default async function precompileCostEstimator(): Promise<string> { | ||
let create2Factory = Create2Factory.create(); | ||
let bnPairingPrecompileCostEstimator = await create2Factory.create2Contract( | ||
await ethers.getContractFactory("BNPairingPrecompileCostEstimator") | ||
); | ||
let create2Fixture = Create2Fixture.create(); | ||
let bnPairingPrecompileCostEstimator | ||
= await create2Fixture.create2Contract("BNPairingPrecompileCostEstimator"); | ||
await (await bnPairingPrecompileCostEstimator.run()).wait(); | ||
return bnPairingPrecompileCostEstimator.address; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters