mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2026-01-05 23:24:25 +01:00
Rename the manually coded init function to connect
This commit is contained in:
committed by
Erdem Yerebasmaz
parent
4d710cde42
commit
8aef55ee51
@@ -2,14 +2,6 @@
|
||||
#import <React/RCTEventEmitter.h>
|
||||
|
||||
@interface RCT_EXTERN_MODULE(RNLiquidSwapSDK, RCTEventEmitter)
|
||||
|
||||
RCT_EXTERN_METHOD(
|
||||
connect: (NSString*)mnemonic
|
||||
dataDir: (NSString*)dataDir
|
||||
network: (NSString*)network
|
||||
resolve: (RCTPromiseResolveBlock)resolve
|
||||
reject: (RCTPromiseRejectBlock)reject
|
||||
)
|
||||
|
||||
RCT_EXTERN_METHOD(
|
||||
connect: (NSString*)mnemonic
|
||||
|
||||
@@ -60,12 +60,6 @@ export const connect = async (mnemonic: string, dataDir: string = "", network: N
|
||||
const response = await LiquidSwapSDK.connect(mnemonic, dataDir, network)
|
||||
return response
|
||||
}
|
||||
export const connect = async (mnemonic: string, dataDir: string = "", network: Network): Promise<BindingWallet> => {
|
||||
const response = await LiquidSwapSDK.connect(mnemonic, dataDir, network)
|
||||
return response
|
||||
}
|
||||
|
||||
|
||||
|
||||
export const getInfo = async (withScan: boolean): Promise<WalletInfo> => {
|
||||
const response = await LiquidSwapSDK.getInfo(withScan)
|
||||
|
||||
Reference in New Issue
Block a user