Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 100356

A lightweight JavaScript library which can be used as an alternative to Web3.js to build your JavaScript front-end and interact with the Ethereum blockchain.

0 votes

Different fuctions to confirm deployment with ethersjs

Basically contract.deployed() using deployTracsaction.wait() but add more case, you can look at the source
0xcuonghx's user avatar
  • 191
0 votes

Sign one contract to spend ERC20 tokens on behalf of another contract in Hardhat unit test w...

ContractA you need to provide function to approve: function approveERC20(address token, address spender, uint256 amount) public onlyOwner { IERC20(token).approve(spender, amount); } Your test wi …
0xcuonghx's user avatar
  • 191
1 vote

TypeError: Cannot read properties of undefined (reading 'JsonRpcProvider')

With ethers@v5 const provider = new ethers.providers.JsonRpcProvider(RPC_URL); With ethers@v6 const provider = new ethers.JsonRpcProvider(RPC_URL);
0xcuonghx's user avatar
  • 191