Skip to content

expectCall cheatcode overloaded with msg.value assertion #1568

@tynes

Description

@tynes

Component

Forge

Describe the feature you would like

Currently vm.expectCall operates on a target address and the calldata it expects

 function expectCall(address,bytes calldata) external;

When sending ETH through multiple contracts, it would be useful to have an overloaded expectCall that also accepts a value param that also asserts on call context's value (msg.value)

function expectCall(address,uint256 value,bytes calldata) external;

Didn't see this mentioned in any open issues, including #876

Additional context

No response

Metadata

Metadata

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions