psffpp 1.1.4 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +4 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -124,6 +124,8 @@ class PSFFPP {
124
124
  // transactions: a Proof-of-Burn (pobTxid) and a Pin Claim (climTxid). The
125
125
  // function returns an object with the transaction ID of those two transacions.
126
126
  async createPinClaim (inObj = {}) {
127
+ let targetAddr
128
+
127
129
  try {
128
130
  const { cid, filename, fileSizeInMegabytes } = inObj
129
131
 
@@ -163,6 +165,7 @@ class PSFFPP {
163
165
 
164
166
  // Get info and libraries from the wallet.
165
167
  const addr = this.wallet.walletInfo.address
168
+ targetAddr = addr
166
169
  const bchjs = this.wallet.bchjs
167
170
  const wif = this.wallet.walletInfo.privateKey
168
171
 
@@ -236,7 +239,7 @@ class PSFFPP {
236
239
  claimTxid
237
240
  }
238
241
  } catch (err) {
239
- console.error('Error in ps010/createPinClaim()')
242
+ console.error(`Error in psffpp/createPinClaim() with target addr ${targetAddr}`)
240
243
  throw err
241
244
  }
242
245
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "psffpp",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "PS010 PSF File Pinning Protocol",
5
5
  "main": "index.js",
6
6
  "type": "module",