1
- using System ;
2
1
using System . Collections . Generic ;
3
2
using System . Numerics ;
4
3
using System . Threading . Tasks ;
5
- using link . magic . unity . sdk ;
6
- using MetaMask . NEthereum ;
7
- using MetaMask . Unity ;
8
4
using Nethereum . Hex . HexConvertors . Extensions ;
9
5
using Nethereum . JsonRpc . Client ;
10
6
using Nethereum . Siwe ;
11
7
using Nethereum . Web3 ;
12
- using Nethereum . Web3 . Accounts ;
13
8
using UnityEngine ;
14
- using WalletConnectSharp . Core . Models . Ethereum ;
15
- using WalletConnectSharp . NEthereum . Client ;
16
- using WalletConnectSharp . Unity ;
17
- using Thirdweb . AccountAbstraction ;
18
9
using Thirdweb . Wallets ;
19
10
20
11
namespace Thirdweb
@@ -170,7 +161,7 @@ private ThirdwebChainData FetchChainData()
170
161
blockExplorerUrls = explorerUrls . ToArray ( ) ,
171
162
chainName = currentNetwork . name ?? ThirdwebManager . Instance . GetCurrentChainIdentifier ( ) ,
172
163
iconUrls = new string [ ] { "ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt" } ,
173
- nativeCurrency = new NativeCurrency ( )
164
+ nativeCurrency = new ThirdwebNativeCurrency ( )
174
165
{
175
166
name = currentNetwork . nativeCurrency ? . name ?? "Ether" ,
176
167
symbol = currentNetwork . nativeCurrency ? . symbol ?? "ETH" ,
@@ -189,7 +180,7 @@ public class ThirdwebChainData : ThirdwebChain
189
180
public string [ ] blockExplorerUrls ;
190
181
public string chainName ;
191
182
public string [ ] iconUrls ;
192
- public NativeCurrency nativeCurrency ;
183
+ public ThirdwebNativeCurrency nativeCurrency ;
193
184
public string [ ] rpcUrls ;
194
185
}
195
186
@@ -198,6 +189,13 @@ public class ThirdwebChain
198
189
public string chainId ;
199
190
}
200
191
192
+ public class ThirdwebNativeCurrency
193
+ {
194
+ public string name ;
195
+ public string symbol ;
196
+ public int decimals ;
197
+ }
198
+
201
199
[ System . Serializable ]
202
200
public class ChainIDNetworkData
203
201
{
0 commit comments