Skip to content

Commit

Permalink
test: payable in batch (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulRBerg authored Dec 16, 2024
1 parent 0539331 commit 6d8f251
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions tests/integration/concrete/payable/payable.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ contract Payable_Integration_Concrete_Test is Shared_Integration_Concrete_Test {
flow.adjustRatePerSecond{ value: FEE }(defaultStreamId, ud21x18(RATE_PER_SECOND_U128 + 1));
}

function test_BatchWhenETHValueNotZero() external {
bytes[] memory calls = new bytes[](0);
flow.batch{ value: FEE }(calls);
}

function test_CreateWhenETHValueNotZero() external {
flow.create{ value: FEE }(users.sender, users.recipient, RATE_PER_SECOND, usdc, TRANSFERABLE);
}
Expand Down
6 changes: 5 additions & 1 deletion tests/integration/concrete/payable/payable.tree
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ Payable_Integration_Concrete_Test::adjustRatePerSecond
└── when ETH value not zero
└── it should make the call

Payable_Integration_Concrete_Test::batch
└── when ETH value not zero
└── it should make the call

Payable_Integration_Concrete_Test::create
└── when ETH value not zero
└── it should make the call
Expand Down Expand Up @@ -56,4 +60,4 @@ Payable_Integration_Concrete_Test::withdraw

Payable_Integration_Concrete_Test::withdrawMax
└── when ETH value not zero
└── it should make the call
└── it should make the call

0 comments on commit 6d8f251

Please sign in to comment.