1.0.2 • Published 2 years ago

hardhat-erc20changer v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Hardhat ERC20 Balance changer

This npm package provide a method to add erc20 balance into your account

Example

import {ethers} from "ethers";
import setBalanceOf from "hardhat-erc20changer";
const usdt = '0xdac17f958d2ee523a2206206994597c13d831ec7';
const bridge = '0xa929022c9107643515f5c777ce9a910f0d1e490c';
const youraddress = '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266';
const amount = '0x100000000';

const rpc = ethers.providers.JsonRpcProvider('http://127.0.0.1:8545'); // hardhat rpc.
await setBalanceOf(usdt, bridge, youraddress, amount);