v4.15.0
What's Changed
Removed all ThirdwebManager Instance references from internal code, meaning you can now instantiate the ThirdwebSDK or wrap it more easily in your own scripts.
The above change comes with a few breaking changes, as some code was rewritten and cleaned up to be more efficient and stable as we move towards Unity v5 which will mostly make use of our .NET SDK once cross-platform feature parity is achieved.
Breaking changes include:
Wallet.AuthenticateAndLoginServerSideis now justAuthenticate.- The old
Wallet.AuthenticateandWallet.Verifymethods no longer exist as they were not useful client-side. Nethereum.SIWE,Nethereum.SIWE.CoreandNethereum.GnosisSafeDLLs have been removed.
- The old
Payis no longer static, you must now go throughSDK.Pay.*Blocksis no longer static, you must now go throughSDK.Blocks.*- Raw
Transactionconstructor (not throughContract.Prepare) now takes in aThirdwebSDKreference. - Most other raw constructors take in
ThirdwebSDKor new parameters. - Some
Utilsnow require additional parameters.
We still recommend using the ThirdwebManager if you are not familiar enough with the SDK and the values it expects for different use cases.
Additional Updates
- [Cross-Platform] Added support for new chains.
- [WebGL] Updated bridge.
- [Native] Improved 1559 gas estimation for various chains, and added logic to handle edge cases and fallback gracefully.
- 1559 estimations were previously overriden on some chains, all chains now properly estimate 1559 fees with the exception of Celo.
- This should increase consistency with transaction submission speed and potentially reduce gas costs.
- Added a ceiling for RPC providers that may return overestimate priority fees, making sure to avoid overpaying in such cases.
- [Native] Smart Wallets now "just work" on ZkSync Sepolia and ZkSync Mainnet, all you need is to connect and set
gaslesstotrue.- Unlike other chains, ZkSync Smart Wallets simply "upgrade" your EOA and preserve their address.
- All EOA wallets are supported.
- You may transact gaslessly using ZkSync Smart Wallets on Mainnet and Sepolia using thirdweb infrastructure.
- A client id is needed to enable this feature, make sure you set it in your ThirdwebManager!
This is a minor update, meaning some structural or api-breaking changes occured. When upgrading, it is best to remove previous SDK files for a smooth importing process, backing up any prefab copies or scripts extending or overriding thirdweb prefabs and scripts.