Skip to content

Commit dcb5165

Browse files
committed
update viem package, add new component to demo
1 parent 16a18e3 commit dcb5165

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

bun.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demos/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"react": "^18.3.1",
1010
"react-dom": "^18.3.1",
1111
"sonner": "^1.7.2",
12-
"viem": "^2.21.53"
12+
"viem": "^2.28.0"
1313
},
1414
"devDependencies": {
1515
"@happy.tech/configs": "workspace:0.1.0",

demos/react/src/App.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { useHappyWallet } from "@happy.tech/react"
2+
import CallBatchDemo from "./demo-components/CallBatchDemo"
23
import ChainSwitchingDemo from "./demo-components/ChainSwitchingDemo"
34
import ConnectionDemo from "./demo-components/ConnectionDemo"
45
import SessionKeyDemo from "./demo-components/SessionKeyDemo"
@@ -24,6 +25,7 @@ function App() {
2425
<ChainSwitchingDemo />
2526
<WalletFunctionalityDemo />
2627
<SessionKeyDemo />
28+
<CallBatchDemo />
2729
</div>
2830
</main>
2931
)

demos/react/src/demo-components/CallBatchDemo.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
import useClients from "../useClients"
2-
31
const CallBatchDemo = () => {
4-
const { walletClient } = useClients()
5-
62
async function getCapabilities() {
73
// const caps = await walletClient?.getCapabilities()
84
}

0 commit comments

Comments
 (0)