@graphprotocol/graph-cli 0.45.2-alpha-20230410191141-d7fddb0 → 0.45.2-alpha-20230410194005-d3aee83
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/CHANGELOG.md +1 -1
- package/dist/compiler/index.js +2 -2
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/compiler/index.js
CHANGED
|
@@ -449,9 +449,9 @@ class Compiler {
|
|
|
449
449
|
}
|
|
450
450
|
async _uploadToIPFS(file) {
|
|
451
451
|
try {
|
|
452
|
-
const hash =
|
|
452
|
+
const hash = await this.ipfs.add(file);
|
|
453
453
|
await this.ipfs.pin.add(hash.cid);
|
|
454
|
-
return hash.toString();
|
|
454
|
+
return hash.cid.toString();
|
|
455
455
|
}
|
|
456
456
|
catch (e) {
|
|
457
457
|
throw Error(`Failed to upload file to IPFS: ${e.message}`);
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED