permit2
permit2 copied to clipboard
Test Helpers: specify spender for SignatureTransfer
Similar to https://github.com/Uniswap/permit2/pull/237, this is a more narrowed approach to providing a generalized test helper for SignatureTransfer.
Currently, the test helpers in PermitSignature only generate signatures for a hard-coded address(this).
Changes:
-
I overloaded
getPermitTransferSignatureto optionally allow users to specify the intended recipient of transferFrom (i.e. a deposit contract) -
added a mock contract to test success/failure paths