Unity 4.17.0 - Transaction Builder Improvements
FirekeeperLong story short, you can now do things like this
- [Cross-Platform] General improvements and cleanup of the low-level
Transactionbuilder class, typically created from Contract.Prepare.- Added Transaction.Populate - a way for you to prepare a transaction by populating all its fields without sending it.
- Added Transaction.GetGasFees to get EIP-1559 max fee per gas and max priority fee per gas.
Contract.Preparewill now return fully populated Transaction includingDatacross platform, instantly.- Fixed edge case where if a chain did not support EIP-1559, and no max fee/max priority fee were explicitly set but a gas price was explicitly set, the gas price would be recalculated and overriden.
- [Cross-Platform] Added Wallet.GetNonce - a simple way to get the connected wallet's nonce, defaults to
pendingblockTag but can be overriden. - [Cross-Platform] Removed the
Contract.Preparevariant that takes in afromaddress override to avoid confusion and simplify syntax. - [Cross-Platform] Added support for new chains.
- [WebGL] Updated bridge.
Release: https://github.com/thirdweb-dev/unity-sdk/releases/tag/v4.17.0