Unity 4.17.0 - Transaction Builder Improvements
Firekeeper
Long story short, you can now do things like this
What's Changed
- [Cross-Platform] General improvements and cleanup of the low-level
Transaction
builder 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.Prepare
will now return fully populated Transaction includingData
cross 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
pending
blockTag but can be overriden. - [Cross-Platform] Removed the
Contract.Prepare
variant that takes in afrom
address 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