psffpp 1.1.3 → 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.
- package/index.js +4 -1
- package/package.json +2 -2
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(
|
|
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.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"description": "PS010 PSF File Pinning Protocol",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"repository": "Permissionless-Software-Foundation/psffpp",
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"axios": "1.3.5",
|
|
37
|
-
"psf-multisig-approval": "2.0.
|
|
37
|
+
"psf-multisig-approval": "2.0.6"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@psf/bch-js": "6.7.4",
|