Skip to content

Commit

Permalink
adds prove to permit deposit test
Browse files Browse the repository at this point in the history
  • Loading branch information
r0wdy1 committed Nov 9, 2023
1 parent 456edeb commit 27c8625
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/zkbob/ZkBobSequencer.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -296,12 +296,12 @@ abstract contract AbstractZkBobPoolSequencerTest is AbstractForkTest {
assertTrue(prover2BalanceAfter == prover2BalanceBefore + prover2FeeBefore * denominator);
}

function testPermitDepositCommit() external {
function testPermitDepositCommitAndProve() external {
uint256 amount = uint256(38);
uint64 proxyFee = uint64(66);
uint64 proverFee = uint64(77);

(bytes memory commitData, ) = _encodePermitDeposit(
(bytes memory commitData, bytes memory proveData) = _encodePermitDeposit(
amount,
user1,
proxyFee,
Expand All @@ -315,6 +315,11 @@ abstract contract AbstractZkBobPoolSequencerTest is AbstractForkTest {
);

assertTrue(success);

(success, ) = address(sequencer).call(
(abi.encodePacked(ZkBobSequencer.prove.selector, proveData))
);

}

function deposit(int256 amount, uint64 proxyFee, uint64 proverFee, address prover) internal {
Expand Down

0 comments on commit 27c8625

Please sign in to comment.