Releases: thirdweb-dev/js
@thirdweb-dev/auth@4.1.77
@thirdweb-dev/auth@4.1.75
Patch Changes
- Updated dependencies []:
- @thirdweb-dev/wallets@2.5.17
thirdweb@5.16.1
Patch Changes
-
#2936
a692154Thanks @MananTank! - Fix OTP input entered by by clicking on “from messages” option in iOS safari -
#2934
bdb919fThanks @gregfromstl! - Updates the CLIcreatecommand to use the v5 templates for Next.js and ViteOther templates will be updated in the future from within their existing repositories
Removes React Native starters from the CLI menu
Removes JS template support from the CLI -
#2941
795a59eThanks @gregfromstl! - Can now optionally specifyblockRangeongetContractEventsin combination withtoBlockandfromBlock.Usage
Specify a
blockRange, defaultingtoBlockto the current block number.await getContractEvents({ contract: myContract, blockRange: 123456n, events: [preparedEvent, preparedEvent2], });
Specify a block range with
toBlock.await getContractEvents({ contract: myContract, toBlock: endBlock, blockRange: 123456n, events: [preparedEvent, preparedEvent2], });
Specify a block range starting from
fromBlock(great for pagination).await getContractEvents({ contract: myContract, fromBlock: lastBlockFetched, blockRange: 123456n, events: [preparedEvent, preparedEvent2], });
-
#2945
b64c8e7Thanks @gregfromstl! - Removes deprecated template options from the CLI, specifically PWA Vite, Express, and React -
#2951
49d4494Thanks @gregfromstl! - Increase gas on MarketplaceV3 writes -
#2948
44680c6Thanks @gregfromstl! - Adds extraGas override to transactions. Useful when gas estimates are faulty or to ensure a transaction goes through.Usage
const transaction = prepareTransaction({ to: "0x1234567890123456789012345678901234567890", chain: ethereum, client: thirdwebClient, value: toWei("1.0"), gasPrice: 30n, extraGas: 50_000n, });
-
#2932
86105c9Thanks @gregfromstl! - TransactionButton throws error on reverted transaction -
#2946
ec149f3Thanks @gregfromstl! - Read RPC url from viem chain in viem chain adapter -
#2928
cea736cThanks @gregfromstl! - Filters invalid listings and auctions from marketplace -
#2949
0e19911Thanks @kien-ngo! - Docs update: fix typos and add code snippet -
#2944
82e8911Thanks @joaquim-verges! - Show auth provider icon in connect UI when connected to in app wallet -
#2933
8e0a3ceThanks @MananTank! - ### Integrate Pay Modal with TransactionButtonBy default, the Pay Modal is integrated with the
TransactionButtoncomponent. If the user performs a transaction and does not have enough funds to execute it and if thirdweb pay is available for that blockchain, the Pay Modal will be displayed to allow user to buy the required amount of tokensA new prop
payModalis added to theTransactionButtoncomponent customize the Pay Modal UI or disable it entirelyExample: Disable Pay Modal
<TransactionButton payModal={false}> Example 1 </TransactionButton>
Example: Customize Pay Modal UI
<TransactionButton payModal={{ theme: "light", }} > Example 2 </TransactionButton>
Disable Pay Modal for certain configurations in
useSendTransactionhookIf
useSendTransactionhook is passedgasless: trueconfiguration or if current active wallet is a smart wallet withsponsorGas: trueconfiguration - the Pay Modal will be disabled -
#2929
9f817cfThanks @joaquim-verges! - Tweaked connected modal UI layout
@thirdweb-dev/wallets@2.5.16
Patch Changes
- Updated dependencies []:
- @thirdweb-dev/sdk@4.0.76
@thirdweb-dev/unity-js-bridge@0.6.25
Patch Changes
- Updated dependencies []:
- @thirdweb-dev/sdk@4.0.76
- @thirdweb-dev/wallets@2.5.16
- @thirdweb-dev/auth@4.1.74
@thirdweb-dev/sdk@4.0.76
@thirdweb-dev/react@4.6.15
Patch Changes
-
#2936
a692154Thanks @MananTank! - Fix OTP input entered by by clicking on “from messages” option in iOS safari -
Updated dependencies []:
- @thirdweb-dev/sdk@4.0.76
- @thirdweb-dev/react-core@4.6.15
- @thirdweb-dev/wallets@2.5.16
@thirdweb-dev/react-native@0.7.47
Patch Changes
- Updated dependencies []:
- @thirdweb-dev/sdk@4.0.76
- @thirdweb-dev/react-core@4.6.15
- @thirdweb-dev/wallets@2.5.16
@thirdweb-dev/react-native-compat@0.7.47
@thirdweb-dev/react-native-compat@0.7.47
@thirdweb-dev/react-core@4.6.15
Patch Changes
- Updated dependencies []:
- @thirdweb-dev/sdk@4.0.76
- @thirdweb-dev/wallets@2.5.16
- @thirdweb-dev/auth@4.1.74