@@ -43,13 +43,21 @@ public class ThirdwebManager : MonoBehaviour
43
43
new ChainData ( "binance-testnet" , "97" , null ) ,
44
44
} ;
45
45
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
+
46
52
[ Header ( "STORAGE OPTIONS" ) ]
47
53
[ Tooltip ( "IPFS Gateway Override" ) ]
48
54
public string storageIpfsGatewayUrl = "https://gateway.ipfscdn.io/ipfs/" ;
49
55
50
56
[ Header ( "OZ DEFENDER OPTIONS" ) ]
51
- [ Tooltip ( "Gasless Transaction Support " ) ]
57
+ [ Tooltip ( "Autotask URL " ) ]
52
58
public string relayerUrl = null ;
59
+
60
+ [ Tooltip ( "Forwarders can be found here https://github.com/thirdweb-dev/ozdefender-autotask" ) ]
53
61
public string relayerForwarderAddress = null ;
54
62
55
63
public ThirdwebSDK SDK ;
@@ -124,6 +132,16 @@ private void Awake()
124
132
} ;
125
133
}
126
134
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
+
127
145
SDK = new ThirdwebSDK ( chainOrRPC , chainId , options ) ;
128
146
}
129
147
0 commit comments