|
1 | 1 | # thirdweb
|
2 | 2 |
|
| 3 | +## 5.46.0 |
| 4 | + |
| 5 | +### Minor Changes |
| 6 | + |
| 7 | +- [#4045](https://github.com/thirdweb-dev/js/pull/4045) [`3c32b99`](https://github.com/thirdweb-dev/js/commit/3c32b99b3addf91ec2fa8aaa02da27c6baf361a2) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Update SIWE interface |
| 8 | + |
| 9 | + ```ts |
| 10 | + import { inAppWallet, createWallet } from "thirdweb/wallets"; |
| 11 | + import { mainnet } from "thirdweb/chains"; |
| 12 | + |
| 13 | + const rabby = createWallet("io.rabby"); |
| 14 | + const wallet = inAppWallet(); |
| 15 | + |
| 16 | + const account = await wallet.connect({ |
| 17 | + client: MY_CLIENT, |
| 18 | + strategy: "wallet", |
| 19 | + wallet: rabby, |
| 20 | + chain: mainnet, |
| 21 | + }); |
| 22 | + ``` |
| 23 | + |
| 24 | +- [#4077](https://github.com/thirdweb-dev/js/pull/4077) [`ef9c7df`](https://github.com/thirdweb-dev/js/commit/ef9c7df2205fd9efa3afe1ccc57c25952e88401f) Thanks [@joaquim-verges](https://github.com/joaquim-verges)! - Passkey login support in React Native |
| 25 | + |
| 26 | +### Patch Changes |
| 27 | + |
| 28 | +- [#4033](https://github.com/thirdweb-dev/js/pull/4033) [`141fd53`](https://github.com/thirdweb-dev/js/commit/141fd53759f1b5515e38688fe96364edc4c76644) Thanks [@kien-ngo](https://github.com/kien-ngo)! - Add more Split contract extensions |
| 29 | + |
| 30 | +- [#3998](https://github.com/thirdweb-dev/js/pull/3998) [`db8695d`](https://github.com/thirdweb-dev/js/commit/db8695d0e8f366e7c577a5098c45fa40e96850b0) Thanks [@kien-ngo](https://github.com/kien-ngo)! - Add NFT extension: updateTokenURI |
| 31 | + |
| 32 | +- [#4101](https://github.com/thirdweb-dev/js/pull/4101) [`03a809a`](https://github.com/thirdweb-dev/js/commit/03a809a33f5a026162bda15586ad8f6d00a45b3a) Thanks [@MananTank](https://github.com/MananTank)! - Add `onPurchaseSuccess` callback to `PayEmbed`, `ConnectButton`, `TransactionButton` and `useSendTransaction` and gets called when user completes the purchase using thirdweb pay. |
| 33 | + |
| 34 | + ```tsx |
| 35 | + <PayEmbed |
| 36 | + client={client} |
| 37 | + payOptions={{ |
| 38 | + onPurchaseSuccess(info) { |
| 39 | + console.log("purchase success", info); |
| 40 | + }, |
| 41 | + }} |
| 42 | + /> |
| 43 | + ``` |
| 44 | + |
| 45 | + ```tsx |
| 46 | + <ConnectButton |
| 47 | + client={client} |
| 48 | + detailsModal={{ |
| 49 | + payOptions: { |
| 50 | + onPurchaseSuccess(info) { |
| 51 | + console.log("purchase success", info); |
| 52 | + }, |
| 53 | + }, |
| 54 | + }} |
| 55 | + /> |
| 56 | + ``` |
| 57 | + |
| 58 | + ```tsx |
| 59 | + <TransactionButton |
| 60 | + transaction={...} |
| 61 | + payModal={{ |
| 62 | + onPurchaseSuccess(info) { |
| 63 | + console.log("purchase success", info); |
| 64 | + }, |
| 65 | + }} |
| 66 | + > |
| 67 | + Some Transaction |
| 68 | + </TransactionButton> |
| 69 | + ``` |
| 70 | + |
| 71 | + ```ts |
| 72 | + const sendTransaction = useSendTransaction({ |
| 73 | + payModal: { |
| 74 | + onPurchaseSuccess(info) { |
| 75 | + console.log("purchase success", info); |
| 76 | + }, |
| 77 | + }, |
| 78 | + }); |
| 79 | + ``` |
| 80 | + |
| 81 | +- [#4047](https://github.com/thirdweb-dev/js/pull/4047) [`7a68e3b`](https://github.com/thirdweb-dev/js/commit/7a68e3b8ed71e7fa0ca64d5a58162817d4b0703b) Thanks [@gregfromstl](https://github.com/gregfromstl)! - Switch to the proper chain prior to signing SIWE payloads |
| 82 | + |
| 83 | +- [#4092](https://github.com/thirdweb-dev/js/pull/4092) [`0ca1a79`](https://github.com/thirdweb-dev/js/commit/0ca1a79342384dd4a0990ec309c2272cc10d9570) Thanks [@gregfromstl](https://github.com/gregfromstl)! - UI cosmetic improvements |
| 84 | + |
| 85 | +- [#4091](https://github.com/thirdweb-dev/js/pull/4091) [`b9ed753`](https://github.com/thirdweb-dev/js/commit/b9ed7535a4b37c9e74567c939abbea88a935e692) Thanks [@MananTank](https://github.com/MananTank)! - Fix connection with Safe using WalletConnect link |
| 86 | + |
| 87 | +- [#4070](https://github.com/thirdweb-dev/js/pull/4070) [`e5a046e`](https://github.com/thirdweb-dev/js/commit/e5a046ecdde1d421a9f15ca52cdb2e955fcb8374) Thanks [@kien-ngo](https://github.com/kien-ngo)! - Add contract util method: `getCompilerMetadata()` |
| 88 | + |
3 | 89 | ## 5.45.1
|
4 | 90 |
|
5 | 91 | ### Patch Changes
|
|
0 commit comments