Skip to content

Commit daff4da

Browse files
Merge branch 'main' into joaquim/rn-ui
2 parents a55ca94 + 63b4e6c commit daff4da

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

.changeset/short-news-sneeze.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
Adds EIP-5792 hook exports to thirdweb/react

packages/thirdweb/src/chains/chain-definitions/polygon-amoy.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ export const polygonAmoy = /*@__PURE__*/ defineChain({
77
blockExplorers: [
88
{
99
name: "PolygonScan",
10-
url: "https://www.oklink.com/amoy",
10+
url: "https://amoy.polygonscan.com",
11+
apiUrl: "https://api-amoy.polygonscan.com/api",
1112
},
1213
],
1314
testnet: true,

packages/thirdweb/src/exports/react.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,8 @@ export {
138138
useWalletDetailsModal,
139139
type UseWalletDetailsModalOptions,
140140
} from "../react/web/ui/ConnectWallet/Details.js";
141+
142+
// eip5792 hooks
143+
export { useSendCalls } from "../react/core/hooks/wallets/useSendCalls.js";
144+
export { useCallsStatus } from "../react/core/hooks/wallets/useCallsStatus.js";
145+
export { useCapabilities } from "../react/core/hooks/wallets/useCapabilities.js";

0 commit comments

Comments
 (0)