@@ -43,13 +43,21 @@ public class ThirdwebManager : MonoBehaviour
4343 new ChainData ( "binance-testnet" , "97" , null ) ,
4444 } ;
4545
46+ [ Header ( "APP METADATA" ) ]
47+ public string appName = "Thirdweb Game" ;
48+ public string appDescription = "Thirdweb Game Demo" ;
49+ public string [ ] appIcons = new string [ ] { "https://thirdweb.com/favicon.ico" } ;
50+ public string appUrl = "https://thirdweb.com" ;
51+
4652 [ Header ( "STORAGE OPTIONS" ) ]
4753 [ Tooltip ( "IPFS Gateway Override" ) ]
4854 public string storageIpfsGatewayUrl = "https://gateway.ipfscdn.io/ipfs/" ;
4955
5056 [ Header ( "OZ DEFENDER OPTIONS" ) ]
51- [ Tooltip ( "Gasless Transaction Support " ) ]
57+ [ Tooltip ( "Autotask URL " ) ]
5258 public string relayerUrl = null ;
59+
60+ [ Tooltip ( "Forwarders can be found here https://github.com/thirdweb-dev/ozdefender-autotask" ) ]
5361 public string relayerForwarderAddress = null ;
5462
5563 public ThirdwebSDK SDK ;
@@ -124,6 +132,16 @@ private void Awake()
124132 } ;
125133 }
126134
135+ // Set up app metadata
136+
137+ options . wallet = new ThirdwebSDK . WalletOptions ( )
138+ {
139+ appName = string . IsNullOrEmpty ( appName ) ? "Thirdweb Game" : appName ,
140+ appDescription = string . IsNullOrEmpty ( appDescription ) ? "Thirdweb Game Demo" : appDescription ,
141+ appIcons = appIcons . Length == 0 ? new string [ ] { "https://thirdweb.com/favicon.ico" } : appIcons ,
142+ appUrl = string . IsNullOrEmpty ( appUrl ) ? "https://thirdweb.com" : appUrl
143+ } ;
144+
127145 SDK = new ThirdwebSDK ( chainOrRPC , chainId , options ) ;
128146 }
129147
0 commit comments