@@ -286,18 +286,16 @@ public void Initialize(string chainIdentifier)
286286 customScheme = string . IsNullOrEmpty ( thirdwebConfig . customScheme ) ? null : thirdwebConfig . customScheme ,
287287 } ;
288288
289- options . smartWalletConfig = string . IsNullOrEmpty ( factoryAddress )
290- ? null
291- : new ThirdwebSDK . SmartWalletConfig ( )
292- {
293- factoryAddress = factoryAddress ,
294- gasless = gasless ,
295- erc20PaymasterAddress = string . IsNullOrEmpty ( erc20PaymasterAddress ) ? null : erc20PaymasterAddress ,
296- erc20TokenAddress = string . IsNullOrEmpty ( erc20TokenAddress ) ? null : erc20TokenAddress ,
297- bundlerUrl = string . IsNullOrEmpty ( bundlerUrl ) ? $ "https://{ activeChainId } .bundler.thirdweb.com" : bundlerUrl ,
298- paymasterUrl = string . IsNullOrEmpty ( paymasterUrl ) ? $ "https://{ activeChainId } .bundler.thirdweb.com" : paymasterUrl ,
299- entryPointAddress = string . IsNullOrEmpty ( entryPointAddress ) ? Thirdweb . AccountAbstraction . Constants . DEFAULT_ENTRYPOINT_ADDRESS : entryPointAddress ,
300- } ;
289+ options . smartWalletConfig = new ThirdwebSDK . SmartWalletConfig ( )
290+ {
291+ factoryAddress = string . IsNullOrEmpty ( factoryAddress ) ? Thirdweb . AccountAbstraction . Constants . DEFAULT_FACTORY_ADDRESS : factoryAddress ,
292+ gasless = gasless ,
293+ erc20PaymasterAddress = string . IsNullOrEmpty ( erc20PaymasterAddress ) ? null : erc20PaymasterAddress ,
294+ erc20TokenAddress = string . IsNullOrEmpty ( erc20TokenAddress ) ? null : erc20TokenAddress ,
295+ bundlerUrl = string . IsNullOrEmpty ( bundlerUrl ) ? $ "https://{ activeChainId } .bundler.thirdweb.com" : bundlerUrl ,
296+ paymasterUrl = string . IsNullOrEmpty ( paymasterUrl ) ? $ "https://{ activeChainId } .bundler.thirdweb.com" : paymasterUrl ,
297+ entryPointAddress = string . IsNullOrEmpty ( entryPointAddress ) ? Thirdweb . AccountAbstraction . Constants . DEFAULT_ENTRYPOINT_ADDRESS : entryPointAddress ,
298+ } ;
301299
302300 // Pass active chain rpc and chainId
303301
0 commit comments