Releases: thirdweb-dev/js
@thirdweb-dev/chains@0.1.106
Patch Changes
- #2925
2bfaafc
Thanks @github-actions! - Synced Chains Package
@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
a692154
Thanks @MananTank! - Fix OTP input entered by by clicking on “from messages” option in iOS safari -
#2934
bdb919f
Thanks @gregfromstl! - Updates the CLIcreate
command 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
795a59e
Thanks @gregfromstl! - Can now optionally specifyblockRange
ongetContractEvents
in combination withtoBlock
andfromBlock
.Usage
Specify a
blockRange
, defaultingtoBlock
to 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
b64c8e7
Thanks @gregfromstl! - Removes deprecated template options from the CLI, specifically PWA Vite, Express, and React -
#2951
49d4494
Thanks @gregfromstl! - Increase gas on MarketplaceV3 writes -
#2948
44680c6
Thanks @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
86105c9
Thanks @gregfromstl! - TransactionButton throws error on reverted transaction -
#2946
ec149f3
Thanks @gregfromstl! - Read RPC url from viem chain in viem chain adapter -
#2928
cea736c
Thanks @gregfromstl! - Filters invalid listings and auctions from marketplace -
#2949
0e19911
Thanks @kien-ngo! - Docs update: fix typos and add code snippet -
#2944
82e8911
Thanks @joaquim-verges! - Show auth provider icon in connect UI when connected to in app wallet -
#2933
8e0a3ce
Thanks @MananTank! - ### Integrate Pay Modal with TransactionButtonBy default, the Pay Modal is integrated with the
TransactionButton
component. 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
payModal
is added to theTransactionButton
component 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
useSendTransaction
hookIf
useSendTransaction
hook is passedgasless: true
configuration or if current active wallet is a smart wallet withsponsorGas: true
configuration - the Pay Modal will be disabled -
#2929
9f817cf
Thanks @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
a692154
Thanks @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