Compare commits

...
3 Commits
Author SHA1 Message Date
Chris Troutner 00b76226ec Merge pull request #43 from Permissionless-Software-Foundation/ct-unstable
fixing improper array
2023-02-13 06:56:46 -08:00
Chris Troutner f0552bce32 fix(utxos): Fixing typo 2023-02-13 06:55:37 -08:00
Chris Troutner 4aa7de253d fixing improper array 2023-02-08 15:06:07 -08:00
3 changed files with 5 additions and 6 deletions
+4 -2
View File
@@ -211,6 +211,8 @@ class BchAdapter {
// Query the UTXOs associated with an array of up to 20 addresses.
async getUtxosBulk (addrs) {
try {
// console.log('getUtxosBulk() addrs: ', addrs)
// Throw an error if this IPFS node has not yet made a connection to a
// wallet service provider.
const selectedProvider =
@@ -229,7 +231,7 @@ class BchAdapter {
const rpcData = {
endpoint: 'utxosBulk',
address: addrs
addresses: addrs
}
// Generate a UUID for the call.
@@ -250,7 +252,7 @@ class BchAdapter {
// Wait for data to come back from the wallet service.
const data = await this.waitForRPCResponse(rpcId)
// console.log(`data: ${JSON.stringify(data, null, 2)}`)
// console.log(`getUtxosBulk() data: ${JSON.stringify(data, null, 2)}`)
return data
} catch (err) {
+1 -1
View File
@@ -325,7 +325,7 @@ class BchRESTControllerLib {
const utxos = await this.adapters.bch.getUtxosBulk(addrs)
// console.log(`utxos: ${JSON.stringify(utxos, null, 2)}`)
ctx.body = [utxos]
ctx.body = utxos
} catch (err) {
this.handleError(ctx, err)
}
-3
View File
@@ -1,3 +0,0 @@
/key/swarm/psk/1.0.0/
/base16/
bbd935b70105b03ebd0c6a3c2d2730cd22fc0d18c490ccf689b6c8a22e1bed2a