Skip to content

Commit

Permalink
Fix example of using expectCall without calldata (#1041)
Browse files Browse the repository at this point in the history
  • Loading branch information
livthomas authored Nov 14, 2023
1 parent 30dcd8a commit 6737319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cheatcodes/expect-call.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Expect that `transfer` with any calldata is called on a token `MyToken` 2 times:
address alice = makeAddr("alice");
emit log_address(alice);
vm.expectCall(
address(token), abi.encodeWithSelector(token.transfer), 2
address(token), abi.encodeWithSelector(token.transfer.selector), 2
);
token.transfer(alice, 10);
token.transfer(alice, 10);
Expand Down

0 comments on commit 6737319

Please sign in to comment.