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
21e467b1
Unverified
Commit
21e467b1
authored
Sep 23, 2020
by
Liana Husikyan
Committed by
GitHub
Sep 23, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #445 from ethereum/checkMetadataExists
Check metadata exist before saving it to the filesystem
parents
f40d5783
efb53d6a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
compiler-metadata.js
apps/remix-ide/src/app/files/compiler-metadata.js
+7
-1
No files found.
apps/remix-ide/src/app/files/compiler-metadata.js
View file @
21e467b1
...
...
@@ -56,7 +56,13 @@ class CompilerMetadata extends Plugin {
deploy
[
network
]
=
self
.
_syncContext
(
contract
,
deploy
[
network
]
||
{})
})
provider
.
set
(
metadataFileName
,
JSON
.
stringify
(
JSON
.
parse
(
contract
.
object
.
metadata
),
null
,
'
\
t'
))
let
parsedMetadata
try
{
parsedMetadata
=
JSON
.
parse
(
contract
.
object
.
metadata
)
}
catch
(
e
)
{
console
.
log
(
e
)
}
if
(
parsedMetadata
)
provider
.
set
(
metadataFileName
,
JSON
.
stringify
(
parsedMetadata
,
null
,
'
\
t'
))
var
data
=
{
deploy
,
...
...
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