@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # @graphprotocol/graph-cli
2
2
 
3
- ## 0.45.2-alpha-20230410191141-d7fddb0
3
+ ## 0.45.2-alpha-20230410194005-d3aee83
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -449,9 +449,9 @@ class Compiler {
449
449
  }
450
450
  async _uploadToIPFS(file) {
451
451
  try {
452
- const hash = (await this.ipfs.add(file));
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}`);
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.45.2-alpha-20230410191141-d7fddb0",
2
+ "version": "0.45.2-alpha-20230410194005-d3aee83",
3
3
  "commands": {
4
4
  "add": {
5
5
  "id": "add",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphprotocol/graph-cli",
3
- "version": "0.45.2-alpha-20230410191141-d7fddb0",
3
+ "version": "0.45.2-alpha-20230410194005-d3aee83",
4
4
  "description": "CLI for building for and deploying to The Graph",
5
5
  "license": "(Apache-2.0 OR MIT)",
6
6
  "engines": {