@@ -94,7 +94,8 @@ public static async Task<string> Connect(WalletConnection walletConnection)
9494 ThirdwebConnect (
9595 taskId ,
9696 walletConnection . provider . ToString ( ) . Substring ( 0 , 1 ) . ToLower ( ) + walletConnection . provider . ToString ( ) . Substring ( 1 ) ,
97- ( int ) walletConnection . chainId , string . IsNullOrEmpty ( walletConnection . password ) ? Utils . GetDeviceIdentifier ( ) : walletConnection . password ,
97+ walletConnection . chainId . ToString ( ) ,
98+ string . IsNullOrEmpty ( walletConnection . password ) ? Utils . GetDeviceIdentifier ( ) : walletConnection . password ,
9899 walletConnection . email ,
99100 walletConnection . personalWallet . ToString ( ) . Substring ( 0 , 1 ) . ToLower ( ) + walletConnection . personalWallet . ToString ( ) . Substring ( 1 ) ,
100101 jsCallback
@@ -120,7 +121,7 @@ public static async Task Disconnect()
120121 await task . Task ;
121122 }
122123
123- public static async Task SwitchNetwork ( int chainId )
124+ public static async Task SwitchNetwork ( string chainId )
124125 {
125126 if ( ! Utils . IsWebGLBuild ( ) )
126127 {
@@ -214,11 +215,11 @@ public static async Task<string> ExportWallet(string password)
214215 [ DllImport ( "__Internal" ) ]
215216 private static extern string ThirdwebInitialize ( string chainOrRPC , string options ) ;
216217 [ DllImport ( "__Internal" ) ]
217- private static extern string ThirdwebConnect ( string taskId , string wallet , int chainId , string password , string email , string personalWallet , Action < string , string , string > cb ) ;
218+ private static extern string ThirdwebConnect ( string taskId , string wallet , string chainId , string password , string email , string personalWallet , Action < string , string , string > cb ) ;
218219 [ DllImport ( "__Internal" ) ]
219220 private static extern string ThirdwebDisconnect ( string taskId , Action < string , string , string > cb ) ;
220221 [ DllImport ( "__Internal" ) ]
221- private static extern string ThirdwebSwitchNetwork ( string taskId , int chainId , Action < string , string , string > cb ) ;
222+ private static extern string ThirdwebSwitchNetwork ( string taskId , string chainId , Action < string , string , string > cb ) ;
222223 [ DllImport ( "__Internal" ) ]
223224 private static extern string ThirdwebFundWallet ( string taskId , string payload , Action < string , string , string > cb ) ;
224225 [ DllImport ( "__Internal" ) ]
0 commit comments