-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
cannot use AA ac in normal dapp like Uniswap #73
Comments
Hello @cwhcheng Looks like we are on same boat ⛵ I was also debugging the same but it goes through the
KeyRingClient Hope to get the some insights or working example to understand how does the flow work. Thank you! |
@meanMonk thanks for your info! I guess your solution requires the change in all existing web3 frontend website? But what I am thinking is a good AA snap should transform an existing transaction request into a userOp so u can use the AA snap in all existing web3 dapp without any change. I found an example that is close to what i want to do. Maybe u can have a look as well! https://ethglobal.com/showcase/snaaps-aa-on-0wx76 |
The log msgs on snap can be found through - manage extensions -> enable dev mode -> Inspect views"background.html" The example |
I create an AA account in snap and I can connect the AA ac to Uniswap. But when i try to perform a token swap, it throws me an error
Invalid options to add user operation smartContractAccount - Expected an object, but received: undefined { "originalError": {} }
. Then I try to add some debug log msg inpackages/snap/src/index.ts
ofonRpcRequest
andonKeyringRequest
, but i cannot get any log msg, so i suspect it never go into the snap when i try to do a swap. Do you know how to deal with this issue? Appreciate any help!The text was updated successfully, but these errors were encountered: