erc20-snapshot
erc20-snapshot copied to clipboard
Mac M1 error
After I run "erc20-snapshot", I got this error blow.
/opt/homebrew/lib/node_modules/erc20-snapshot/node_modules/web3-eth-contract/lib/index.js:50 throw new Error('Please use the "new" keyword to instantiate a web3.eth.Contract() object!'); ^
Error: Please use the "new" keyword to instantiate a web3.eth.Contract() object!
at Eth.Contract (/opt/homebrew/lib/node_modules/erc20-snapshot/node_modules/web3-eth-contract/lib/index.js:50:15)
at Eth.Contract (/opt/homebrew/lib/node_modules/erc20-snapshot/node_modules/web3-eth/lib/index.js:289:22)
at module.exports.getContract (/opt/homebrew/lib/node_modules/erc20-snapshot/contract.js:12:29)
at Object.