Hot answers tagged

1 vote

Extracting input data when writing Forge tests/POCs

Assuming that you are referring to a transaction that was included in previous blocks for a particular chain, you can get the transaction receipt using cast and decode the transaction data within the ...
Siddharth Bhoite's user avatar
1 vote

When testing Chainlink CCIP with Router.sol, what address should the onRamp be?

The getFee() call comes from the EVM2EVMOnRamp.sol smart contract. So you need to either provide its actual address on the source blockchain, assuming you are using the forking method for testing, or ...
Andrej's user avatar
  • 374
1 vote

How to unit test contract private and internal functions?

For anyone using Foundry, the recommended advice for testing internal functions is to inherit and expose them as external ones. This can be done directly in the .t.sol file, so you don't have to worry ...
NNNComplex's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible