.NET 1.0.2 - Better DX
Improved extensions for contracts and simplified developer experience.
This patch introduces the ability to call static ThirdwebContract
methods as extensions.
For instance ThirdwebContract.Read
, ThirdwebContract.Write
and ThirdwebContract.Prepare
can now be used directly on the ThirdwebContract
object.
// Previously
var contract = await ThirdwebContract.Create(...);
var result = await ThirdwebContract.Read<string>(contract, ...);
// In 1.0.2
var contract = await ThirdwebContract.Create(...);
var result = await contract.Read<string>(...);
// Note, both patterns are supported, no migration required
Furthermore, the IThirdwebWallet
interface now supports Disconnect
directly, so you no longer have to cast to InAppWallet
to explicitly call disconnect and clear your local sessions.
Finally, SmartWallet.GetPersonalAccount
is now SmartWallet.GetPersonalWallet
- this function is used as a simple way to access the IThirdwebWallet
acting as the signer for your smart account.