-
Notifications
You must be signed in to change notification settings - Fork 538
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix OFT and OFTV2 deployment code and corresponding README.md instruc…
…tions The instructions for deploying OFTV2 in README.md did not work, as the deployment scripts refer to ExampleOFT and ExampleOFTV2 contracts, which don't exist. I changed these to OFTMock and OFTV2Mock respectively. Additionally, instructions failed to mention that the deployer *must* set a minDstGasLimit in this version of code. I added this instruction in and was able to send tokens successfully. Lastly, even though there is not an example for OFT, we failed to include a task to mintTokens(...). This PR includes a small task to mint tokens so the OFT example can be tested. Signed-off-by: Ryan Goulding <[email protected]>
- Loading branch information
1 parent
b68756e
commit 80b89b2
Showing
6 changed files
with
40 additions
and
10 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
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module.exports = async function (taskArgs, hre) { | ||
let owner = (await ethers.getSigners())[0] | ||
let toAddress = owner.address | ||
let qty = ethers.utils.parseEther(taskArgs.qty) | ||
|
||
const oftMock = await ethers.getContract("OFTMock") | ||
|
||
let tx = await ( | ||
await oftMock.mintTokens(toAddress, qty) | ||
).wait() | ||
console.log(`✅ OFT minted [${hre.network.name}] to: [${toAddress}] qty: [${qty}]`) | ||
} |
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