Skip to content

Instantly share code, notes, and snippets.

@daopunk
Created June 30, 2022 20:20
Show Gist options
  • Select an option

  • Save daopunk/78987d8ef55852cee9cf6000af03a9d3 to your computer and use it in GitHub Desktop.

Select an option

Save daopunk/78987d8ef55852cee9cf6000af03a9d3 to your computer and use it in GitHub Desktop.
Reusable ethers.js methods for cleaner code
const { ethers } = require('hardhat');
require('dotenv').config();
// ethers methods
const utils = ethers.utils;
const BigNumber = ethers.BigNumber;
const MaxUint256 = ethers.constants.MaxUint256
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment