-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add permit2 for init pool #553
base: main
Are you sure you want to change the base?
Conversation
const _owner = typeof owner === 'string' ? owner : owner.address; | ||
let _nonce: number; | ||
if (nonce === undefined) { | ||
_nonce = await getNonce(client, token, owner, spender); | ||
_nonce = await getNonce(client, token, _owner, spender); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@brunoguerios lmk if you agree with this approach and if we should allow Account
for all the other sign helper methods as part of this PR or open a new issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure! It does seem a more robust approach. If it's just a matter of adding that single line for owner
type check on each method, I'd go ahead and make the change 👍
No idea why unrelated swap tests are failing 🤔 |
Closes #476
Summary
getDetails
ofPermit2Helper
to allow for typeAccount
so thatclient.signTypedData
can be run with a script