permit2 icon indicating copy to clipboard operation
permit2 copied to clipboard

Test Helpers: specify spender for SignatureTransfer

Open saucepoint opened this issue 2 years ago • 0 comments

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 getPermitTransferSignature to optionally allow users to specify the intended recipient of transferFrom (i.e. a deposit contract)

  • added a mock contract to test success/failure paths

saucepoint avatar Jan 19 '24 17:01 saucepoint