File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
demos/react/src/demo-components Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ import {
3131} from "viem/account-abstraction"
3232import { entryPoint07Address } from "viem/account-abstraction"
3333import { privateKeyToAccount } from "viem/accounts"
34- import type { GetCapabilitiesReturnType } from "viem/experimental"
34+
3535import { parseUserOpCalldata , sendUserOp } from "#src/requests/userOps"
3636import { type SessionKeysByHappyUser , StorageKey , storage } from "#src/services/storage.ts"
3737import { getCurrentChain } from "#src/state/chains"
@@ -287,7 +287,7 @@ export async function dispatchHandlers(request: ProviderMsgsFromApp[Msgs.Request
287287 ) ,
288288 }
289289
290- return capabilities satisfies GetCapabilitiesReturnType
290+ return capabilities
291291 }
292292
293293 case HappyMethodNames . REQUEST_SESSION_KEY : {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { walletClient } from "../clients"
33
44const CallBatchDemo = ( ) => {
55 async function getCapabilities ( ) {
6- const caps = await walletClient ? .getCapabilities ( )
6+ const caps = await walletClient . getCapabilities ( )
77
88 console . log ( caps )
99
@@ -22,7 +22,11 @@ const CallBatchDemo = () => {
2222 < div className = "grid grid-cols-2 gap-4 backdrop-blur-sm bg-gray-200/35 p-4 rounded-lg" >
2323 < div className = "text-lg font-bold col-span-2" > EIP-5792</ div >
2424
25- < button type = "button" onClick = { getCapabilities } className = "rounded-lg bg-sky-300 p-2 shadow-xl font-mono" >
25+ < button
26+ type = "button"
27+ onClick = { getCapabilities }
28+ className = "rounded-lg bg-sky-300 p-2 shadow-xl font-mono truncate"
29+ >
2630 wallet_getCapabilities
2731 </ button >
2832
You can’t perform that action at this time.
0 commit comments