New answers tagged

0 votes

Getting the error: getAddress is not a function

check it out my answer here in github https://github.com/smartcontractkit/full-blockchain-solidity-course-js/discussions/5327#discussioncomment-8641263
C_Maxit's user avatar
0 votes

Does Uniswap allow testing swap on testnets?

I have the same issue. Was working few days ago. Now my liqidity pool is created: https://www.dextools.io/app/en/ethergoerli/pair-explorer/0x93e1300f34b35b3fbcae8995bd1b73b3d3586d0d?t=1709017608883 ...
ben's user avatar
  • 1
1 vote

Does Uniswap allow testing swap on testnets?

It does support testnet mode. The error you are getting is regarding low liquidity, try swapping fewer tokens or adding more liquidity to the pool. Also, share the pool so the community members can ...
Zartaj Afser's user avatar
  • 3,239
1 vote
Accepted

How to use native token as fee in CCIP local unit tests?

CCIP converts native fees to a wrapped equivalent. Add this import to the top of the test suite: import {WETH9} from "@chainlink/contracts-ccip/src/v0.8/ccip/test/WETH9.sol"; Add this line ...
palmcivet's user avatar
0 votes

Does Integration-Testing can be done in local blockchain using Hardhat?

If the third-party party contract is already deployed on a mainnet or if you deploy it on a testnet, you can then fork the network state with the third-party contract & run your own development ...
Ake's user avatar
  • 1,099
0 votes

How to solve "sender doesn't have enough funds to send tx. The upfront cost is: xxxxxxxxxxxxxxxx and the sender's account only has: 0"?

When you send a transaction, you have to have enough eth to pay for the max possible gas cost of a tx. That is, the gasLimit * gasPrice value. So if the gas limit is huge, you'll need much more ETH, ...
Vijay raj panchal's user avatar
0 votes

How to use native token as fee in CCIP local unit tests?

You should be able to use native tokens using address(0) instead of the LINK token address. See the transferTokensPayNative function in this tutorial: https://docs.chain.link/ccip/tutorials/cross-...
Richard G's user avatar
  • 129
0 votes

Instead change the require of chai.js in to a dynamic import() which is available in all CommonJS modules

try using earlier "chai" version, for example, do yarn add --dev [email protected] or npm i --save-dev [email protected], depending on your package manager. It worked well for me.
Nikita Yeldynov's user avatar
0 votes

Fuzz Testing in Foundry: expectRevert Not Working (Call reverted as expected, but without data)

I can't reproduce the error that OP reports, but am providing a generic answer as this is one of the few search results for the error message (that's how I got here). TL;DR some EVM-internal reverts ...
Arran Schlosberg's user avatar

Top 50 recent answers are included