From 052b511dc53fabde8e329d10c756a200fa7bd3f0 Mon Sep 17 00:00:00 2001 From: Ross Savage Date: Mon, 4 Sep 2023 23:08:24 +0200 Subject: [PATCH 1/4] Update RN install commands --- src/guide/install.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/guide/install.md b/src/guide/install.md index 6cdf43c..c70b364 100644 --- a/src/guide/install.md +++ b/src/guide/install.md @@ -63,11 +63,11 @@ See [the example](https://github.com/breez/breez-sdk/tree/main/libs/sdk-bindings We recommmend using the official npm package: ```console -npm install https://github.com/breez/breez-sdk-react-native/releases/download/0.1.4/breeztech-react-native-breez-sdk-0.1.4.tgz +npm install @breeztech/react-native-breez-sdk ``` or ```console -yarn add https://github.com/breez/breez-sdk-react-native/releases/download/0.1.4/breeztech-react-native-breez-sdk-0.1.4.tgz +yarn add @breeztech/react-native-breez-sdk ``` ## Go From dd2d920b155aa83d543220f8b836916bcb8a9ac0 Mon Sep 17 00:00:00 2001 From: Ross Savage Date: Mon, 4 Sep 2023 23:12:33 +0200 Subject: [PATCH 2/4] Fix defaultConfig call --- src/guide/getting_started.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guide/getting_started.md b/src/guide/getting_started.md index c0ef572..ff6b673 100644 --- a/src/guide/getting_started.md +++ b/src/guide/getting_started.md @@ -145,7 +145,7 @@ const nodeConfig : NodeConfig = { inviteCode: "your invite code" } } -let config = defaultConfig(EnvironmentType.PRODUCTION, "api key", nodeConfig); +let config = await defaultConfig(EnvironmentType.PRODUCTION, "api key", nodeConfig); // Customize the config object according to your needs config.workingDir = "path to an existing directory"; From d41dc9cc9302169c6baf5ab52223ba5574437d29 Mon Sep 17 00:00:00 2001 From: Ross Savage Date: Mon, 4 Sep 2023 23:16:14 +0200 Subject: [PATCH 3/4] Fix sendOnchain call --- src/guide/send_onchain.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guide/send_onchain.md b/src/guide/send_onchain.md index 563f7e5..af93f13 100644 --- a/src/guide/send_onchain.md +++ b/src/guide/send_onchain.md @@ -261,7 +261,7 @@ const destinationAddress = "bc1.."; const amountSat = currentFees.min; const satPerVbyte = try { - const reverseSwapInfo = sendOnchain(amountSat, destinationAddress, currentFees.feesHash, satPerVbyte) + const reverseSwapInfo = await sendOnchain(amountSat, destinationAddress, currentFees.feesHash, satPerVbyte) } catch (error) { console.log(error) } From def86fcec93e8992ea7a8d7236e6d306dbbde895 Mon Sep 17 00:00:00 2001 From: Ross Savage Date: Mon, 4 Sep 2023 23:17:47 +0200 Subject: [PATCH 4/4] Fix fetchFiatRates call --- src/guide/fiat_currencies.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/guide/fiat_currencies.md b/src/guide/fiat_currencies.md index b2726de..af746b8 100644 --- a/src/guide/fiat_currencies.md +++ b/src/guide/fiat_currencies.md @@ -95,7 +95,7 @@ try { ```typescript try { - const fiatRatesMap = fetchFiatRates() + const fiatRatesMap = await fetchFiatRates() } catch (error) { console.log(error) }