Skip to content

Commit

Permalink
small nits for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
0age committed Oct 30, 2024
1 parent 5229c78 commit 58fdf35
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/TheCompact.sol
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,9 @@ contract TheCompact is ITheCompact, ClaimProcessor, ERC6909, Extsload {
Scope, //scope
address recipient,
bytes calldata signature
) external payable returns (uint256[] memory ids) {
uint256 totalTokensLessInitialNative;
bool firstUnderlyingTokenIsNative;
uint256[] memory initialTokenBalances;
(totalTokensLessInitialNative, firstUnderlyingTokenIsNative, ids, initialTokenBalances) = _preprocessAndPerformInitialNativeDeposit(permitted, recipient);
) external payable returns (uint256[] memory) {
(uint256 totalTokensLessInitialNative, bool firstUnderlyingTokenIsNative, uint256[] memory ids, uint256[] memory initialTokenBalances) =
_preprocessAndPerformInitialNativeDeposit(permitted, recipient);

bytes32 witness = _deriveCompactDepositWitnessHash(uint256(0x84).asStubborn());

Expand All @@ -201,6 +199,8 @@ contract TheCompact is ITheCompact, ClaimProcessor, ERC6909, Extsload {
_writeSignatureAndPerformPermit2Call(m, uint256(0xc0).asStubborn(), signatureOffsetValue, signature);

_verifyBalancesAndPerformDeposits(ids, permitted, initialTokenBalances, recipient, firstUnderlyingTokenIsNative);

return ids;
}

function depositAndRegister(
Expand Down

0 comments on commit 58fdf35

Please sign in to comment.