mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2026-01-26 09:24:32 +01:00
Rename init() to connect() (#119)
* Rename init() to connect() * Shorten commit ID for secp256k1-zkp dependency * Update RN bindings * Rename the manually coded init function to connect * Update RN example app --------- Co-authored-by: Ross Savage <hello@satimoto.com> Co-authored-by: Ross Savage <551697+dangeross@users.noreply.github.com>
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
import React, { useState } from "react"
|
||||
import { SafeAreaView, ScrollView, StatusBar, Text, TouchableOpacity, View } from "react-native"
|
||||
import { Network, getInfo, init } from "@breeztech/react-native-liquid-swap-sdk"
|
||||
import { Network, getInfo, connect } from "@breeztech/react-native-liquid-swap-sdk"
|
||||
import { generateMnemonic } from "@dreson4/react-native-quick-bip39"
|
||||
import { getSecureItem, setSecureItem } from "./utils/storage"
|
||||
|
||||
@@ -43,8 +43,8 @@ const App = () => {
|
||||
setSecureItem(MNEMONIC_STORE, mnemonic)
|
||||
}
|
||||
|
||||
await init(mnemonic, undefined, Network.LIQUID)
|
||||
addLine("init", null)
|
||||
await connect(mnemonic, undefined, Network.LIQUID)
|
||||
addLine("connect", null)
|
||||
|
||||
let walletInfo = await getInfo(false)
|
||||
addLine("getInfo", JSON.stringify(walletInfo))
|
||||
|
||||
Reference in New Issue
Block a user