Skip to content

Comments

test: generalize spender#237

Open
Thomas-Smets wants to merge 1 commit intoUniswap:mainfrom
Thomas-Smets:tests/generalise-spender
Open

test: generalize spender#237
Thomas-Smets wants to merge 1 commit intoUniswap:mainfrom
Thomas-Smets:tests/generalise-spender

Conversation

@Thomas-Smets
Copy link

@Thomas-Smets Thomas-Smets commented Oct 12, 2023

Protocols integrating Permit2 will probably reuse the utils provided in this repo for their tests.
But the spender in their tests will most likely not be the test-contract itself.

Finding why the signature verification fails due to the hard-coded spender requires quite some knowledge of both Foundry and how certificates work, and is not that straightforward.

By generalising the spender, integrations will be sped up and better tested.
Alternatively I can also move the spender to the structs in ISignatureTransfer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant