-
Notifications
You must be signed in to change notification settings - Fork 46
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
Fix paymaster when using rainbowkit connector #17
Conversation
7d12d9e
to
06a9ac9
Compare
@@ -125,15 +126,36 @@ function abstractWalletConnector( | |||
transport, | |||
}); | |||
|
|||
const paymasterParams = params[0].eip712Meta.paymasterParams |
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.
I'll take a look into this PR a bit more closely - I have a feeling there might be an existing formatter in the zksync viem package than can help with this
06a9ac9
to
5e68f3d
Compare
// Formatter: https://github.com/wevm/viem/blob/main/src/zksync/formatters.ts#L114 | ||
if (transaction.eip712Meta) { | ||
transaction.paymaster = | ||
transaction.eip712Meta.paymasterParams.paymaster; |
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.
Is it possible to have eip712Meta but no paymaster params? Might need a null check here.
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.
true
No description provided.