Skip to content

Commit abe952c

Browse files
style: reformat long lines in PayNodeRouter.t.sol for improved readability.
1 parent 003706f commit abe952c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

test/PayNodeRouter.t.sol

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,10 @@ contract PayNodeRouterTest is Test {
157157
bytes32 orderId = keccak256("fuzz_order_permit");
158158
uint256 deadline = block.timestamp + 1 hours;
159159

160-
bytes32 permitTypehash = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
161-
bytes32 structHash = keccak256(abi.encode(permitTypehash, payer, address(router), amount, usdc.nonces(payer), deadline));
160+
bytes32 permitTypehash =
161+
keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)");
162+
bytes32 structHash =
163+
keccak256(abi.encode(permitTypehash, payer, address(router), amount, usdc.nonces(payer), deadline));
162164
bytes32 digest = keccak256(abi.encodePacked("\x19\x01", usdc.DOMAIN_SEPARATOR(), structHash));
163165

164166
(uint8 v, bytes32 r, bytes32 s) = vm.sign(payerPrivateKey, digest);

0 commit comments

Comments
 (0)