Skip to content

Commit

Permalink
feat: add mint mock token (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
BaptistG authored Jun 3, 2024
1 parent 68a0194 commit 248873b
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions scripts/mintMockToken.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { parseEther, parseUnits } from 'ethers/lib/utils';
import { ethers } from 'hardhat';

import { MAX_UINT256 } from '../test/hardhat/utils/helpers';
import { MockToken__factory } from '../typechain';

async function main() {
const { deployer } = await ethers.getNamedSigners();

const MockToken = MockToken__factory.connect('0xA7c167f58833c5e25848837f45A1372491A535eD', deployer);

console.log(`Minting MockToken to ${deployer.address}...`);
await (
await MockToken.mint(deployer.address, parseUnits('100000', 6), {
// gasLimit: 300_000,
// maxPriorityFeePerGas: 100e9,
// maxFeePerGas: 700e9,
})
).wait();
console.log(`...Minted mock token to address ${deployer.address} ✅`);
}

main().catch(error => {
console.error(error);
process.exit(1);
});

0 comments on commit 248873b

Please sign in to comment.