Skip to content

Commit

Permalink
refactored mockCall
Browse files Browse the repository at this point in the history
  • Loading branch information
Erikd-dev committed Aug 10, 2024
1 parent c53362d commit e499b82
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions test/concrete/flowBasic/FlowTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,7 @@ contract FlowTest is FlowBasicTest {
amount: erc1155OutAmmount
});

vm.mockCall(
iERC1155,
abi.encodeWithSelector(
IERC1155.safeTransferFrom.selector, flow, alice, erc1155OutTokenId, erc1155OutAmmount, ""
),
abi.encode()
);
vm.mockCall(iERC1155, abi.encodeWithSelector(IERC1155.safeTransferFrom.selector), abi.encode());
vm.expectCall(
iERC1155,
abi.encodeWithSelector(
Expand All @@ -67,9 +61,7 @@ contract FlowTest is FlowBasicTest {

vm.mockCall(
iERC721,
abi.encodeWithSelector(
bytes4(keccak256("safeTransferFrom(address,address,uint256)")), alice, flow, erc721InTokenId
),
abi.encodeWithSelector(bytes4(keccak256("safeTransferFrom(address,address,uint256)"))),
abi.encode()
);
vm.expectCall(
Expand Down

0 comments on commit e499b82

Please sign in to comment.