Skip to content

Commit

Permalink
installation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ielashi committed Aug 23, 2022
1 parent afcd583 commit 0ab8703
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions rust/bitcoin_wallet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Install the required node modules for the Bitcoin wallet webapp:

```bash
npm install
npm run build
npm run build-vanilla
```

While working on the Internet Computer does not require more configuration, working locally does. The additional instructions are provided in [the next section](#testing-locally).
Expand Down
3 changes: 1 addition & 2 deletions rust/bitcoin_wallet/dfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"internet_identity": {
"type": "custom",
"candid": "internet_identity.did",
"wasm": "internet_identity.wasm",
"build": "curl -sSL https://github.com/dfinity/internet-identity/releases/latest/download/internet_identity_dev.wasm -o internet_identity.wasm"
"wasm": "internet_identity.wasm"
},
"bitcoin_wallet": {
"candid": "src/bitcoin_wallet/bitcoin_wallet.did",
Expand Down
6 changes: 5 additions & 1 deletion rust/bitcoin_wallet/src/bitcoin_wallet/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,11 @@ async fn get_fees() -> (Satoshi, Satoshi, Satoshi) {
let current_fees = get_current_fees_from_args(get_current_fees_args)
.await
.unwrap();
(current_fees[24], current_fees[49], current_fees[74])
if !current_fees.is_empty() {
(current_fees[24], current_fees[49], current_fees[74])
} else {
(1000, 1000, 1000)
}
}

/// Sends a transaction, transferring the specified Bitcoin amount to the provided address.
Expand Down

0 comments on commit 0ab8703

Please sign in to comment.