We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e014c2b commit acf3ce6Copy full SHA for acf3ce6
src/ipfs-access-controller.js
@@ -34,15 +34,14 @@ class IPFSAccessController extends AbstractAccessController {
34
}
35
36
async save () {
37
- let hash
38
try {
39
const access = JSON.stringify(this._access, null, 2)
40
const dag = await this._ipfs.object.put(new Buffer(access))
41
- hash = dag.toJSON().multihash.toString()
+ const hash = dag.toJSON().hash
+ return path.join('/ipfs', hash)
42
} catch (e) {
43
console.log("ACCESS ERROR:", e)
44
45
- return path.join('/ipfs', hash)
46
47
48
async setup ({ accessControllerAddress: address }) {
0 commit comments