Questions tagged [etherjs]
The etherjs tag has no usage guidance.
2 questions
4
votes
2
answers
5k
views
How to mock smart contract function for testing (in hardhat)
In my Test I want to mock an external function that I call inside my smart contract to test both conditions without writing and deploying an extra fake smart contract.
My Contract
//SPDX-License-...
3
votes
1
answer
4k
views
Uniswap Universal Router - Decoding the Execute function parameters
I used the method described in this thread (Decode Uniswap Universal Router transaction in ethers.js) and decoded most of the data of a transaction at this link: https://arbiscan.io/tx/...