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
31285946
Commit
31285946
authored
Jun 30, 2021
by
Aniket-Engg
Committed by
Aniket
Jul 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
handle error for solc-select
parent
b623b975
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
slitherClient.ts
libs/remixd/src/services/slitherClient.ts
+5
-0
No files found.
libs/remixd/src/services/slitherClient.ts
View file @
31285946
...
...
@@ -67,6 +67,7 @@ export class SlitherClient extends PluginClient {
// Get compiler version without commit id e.g: 0.8.2
const
version
:
string
=
versionString
.
substring
(
0
,
versionString
.
indexOf
(
'+commit'
))
// List solc versions installed using solc-select
try
{
const
solcSelectInstalledVersions
:
Buffer
=
execSync
(
'solc-select versions'
,
options
)
// Check if required version is already installed
if
(
!
solcSelectInstalledVersions
.
toString
().
includes
(
version
))
{
...
...
@@ -77,6 +78,10 @@ export class SlitherClient extends PluginClient {
console
.
log
(
'
\
x1b[32m%s
\
x1b[0m'
,
`[Slither Analysis]: Setting
${
version
}
as current solc version using solc-select`
)
// Set solc current version as required version
execSync
(
`solc-select use
${
version
}
`
,
options
)
}
catch
(
err
)
{
console
.
log
(
err
)
reject
(
new
Error
(
'Error in running solc-select command'
))
}
}
else
console
.
log
(
'
\
x1b[32m%s
\
x1b[0m'
,
'[Slither Analysis]: Compiler version is same as installed solc version'
)
}
const
outputFile
:
string
=
'remix-slitherReport_'
+
Date
.
now
()
+
'.json'
...
...
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