From d977dadb8cb6541c02710c9bda83c60f8a688bc4 Mon Sep 17 00:00:00 2001 From: Kun Date: Mon, 29 Mar 2021 23:33:56 +0800 Subject: [PATCH] [CI] Fix ipfsUpload Crust Pinner (#4970) * Fix abnormal account type * Fix crust logo invisible * Add Crust Rococo V1 Endpoint * Upgrade to Crust Maxwell * Apply crust type package and add DCF provider * Ipfs on crust (#4) * Change ipfs upload in a more decentralized way * Add CRUST_SEEDS env variable * Fix with Crust IPFS Upload --- scripts/ipfsUpload.cjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ipfsUpload.cjs b/scripts/ipfsUpload.cjs index fece220df8..98ab8c04f7 100644 --- a/scripts/ipfsUpload.cjs +++ b/scripts/ipfsUpload.cjs @@ -3,7 +3,7 @@ const fs = require('fs'); const pinataSDK = require('@pinata/sdk'); -const crustPin = require('@crustio/crust-pin').default; +const CrustPinner = require('@crustio/crust-pin').default; const cloudflare = require('dnslink-cloudflare'); const execSync = require('@polkadot/dev/scripts/execSync.cjs'); @@ -20,7 +20,7 @@ const PINMETA = { name: DOMAIN }; const repo = `https://${process.env.GH_PAT}@github.com/${process.env.GITHUB_REPOSITORY}.git`; const pinata = pinataSDK(process.env.PINATA_API_KEY, process.env.PINATA_SECRET_KEY); -const crust = crustPin(process.env.CRUST_SEEDS); +const crust = new CrustPinner(process.env.CRUST_SEEDS); function writeFiles (name, content) { [DST, SRC].forEach((root) =>