Skip to content

Commit

Permalink
Add transfers
Browse files Browse the repository at this point in the history
  • Loading branch information
ninokeldishvili committed Aug 9, 2024
1 parent 03c85e4 commit 7446ad2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/concrete/flowErc1155/FlowTimeTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,19 @@ contract FlowTimeTest is FlowUtilsAbstractTest, FlowERC1155Test {
flowId1234[0] = 1234;
erc1155Flow.flow(evaluable, flowId1234, signedContexts);

// Fund Alice and the contract with necessary tokens
erc20In.transfer(alice, erc20Transfers[0].amount);
erc20Out.transfer(address(erc1155Flow), erc20Transfers[1].amount);

// Perform another flow with a different id 5678
uint256[] memory flowId5678 = new uint256[](1);
flowId5678[0] = 5678;
erc1155Flow.flow(evaluable, flowId5678, signedContexts);

// Fund Alice and the contract with necessary tokens
erc20In.transfer(alice, erc20Transfers[0].amount);
erc20Out.transfer(address(erc1155Flow), erc20Transfers[1].amount);

// Attempt to perform the flow again with id 1234, should revert
vm.expectRevert();
erc1155Flow.flow(evaluable, flowId1234, signedContexts);
Expand Down

0 comments on commit 7446ad2

Please sign in to comment.