You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Integration tests for this are relatively easy to implement. We just need to deploy a contract like this:
contractBlockOverrideTest {
function getBlockNumber() publicviewreturns (uint) {
returnblock.number;
}
function getBlockTimestamp() publicviewreturns (uint) {
returnblock.timestamp;
}
// etc.
}
and call each function with the proper override. (Testing that multiple things can be overridden with a single call is a bit more involved, but still doable.)
The text was updated successfully, but these errors were encountered:
See docs here: https://geth.ethereum.org/docs/interacting-with-geth/rpc/ns-eth#eth-call
The fields to support are:
Integration tests for this are relatively easy to implement. We just need to deploy a contract like this:
and call each function with the proper override. (Testing that multiple things can be overridden with a single call is a bit more involved, but still doable.)
The text was updated successfully, but these errors were encountered: