Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
d26f26f3
Commit
d26f26f3
authored
Sep 09, 2021
by
bunsenstraat
Committed by
davidzagi93@gmail.com
Sep 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
have options for results
parent
d0caf4c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dgitProvider.js
apps/remix-ide/src/app/files/dgitProvider.js
+2
-2
No files found.
apps/remix-ide/src/app/files/dgitProvider.js
View file @
d26f26f3
...
@@ -363,7 +363,7 @@ class DGitProvider extends Plugin {
...
@@ -363,7 +363,7 @@ class DGitProvider extends Plugin {
data
.
append
(
'pinataMetadata'
,
metadata
)
data
.
append
(
'pinataMetadata'
,
metadata
)
const
url
=
'https://api.pinata.cloud/pinning/pinFileToIPFS'
const
url
=
'https://api.pinata.cloud/pinning/pinFileToIPFS'
try
{
try
{
await
axios
const
result
=
await
axios
.
post
(
url
,
data
,
{
.
post
(
url
,
data
,
{
maxBodyLength
:
'Infinity'
,
maxBodyLength
:
'Infinity'
,
headers
:
{
headers
:
{
...
@@ -373,7 +373,7 @@ class DGitProvider extends Plugin {
...
@@ -373,7 +373,7 @@ class DGitProvider extends Plugin {
}
}
})
})
// also commit to remix IPFS for availability after pinning to Pinata
// also commit to remix IPFS for availability after pinning to Pinata
return
await
this
.
export
(
this
.
remixIPFS
)
return
await
this
.
export
(
this
.
remixIPFS
)
||
result
.
data
.
IpfsHash
}
catch
(
error
)
{
}
catch
(
error
)
{
throw
new
Error
(
error
)
throw
new
Error
(
error
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment