Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
c949803f
Unverified
Commit
c949803f
authored
May 10, 2021
by
smartcontracts
Committed by
GitHub
May 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style: require curly braces for if statements (#835)
parent
aa4f4620
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
logger.ts
packages/common-ts/src/common/logger.ts
+3
-1
index.ts
packages/hardhat-ovm/src/index.ts
+6
-3
tslint.base.json
tslint.base.json
+2
-1
No files found.
packages/common-ts/src/common/logger.ts
View file @
c949803f
...
@@ -41,7 +41,9 @@ export class Logger {
...
@@ -41,7 +41,9 @@ export class Logger {
}),
}),
})
})
}
}
if
(
options
.
streams
)
loggerStreams
=
loggerStreams
.
concat
(
options
.
streams
)
if
(
options
.
streams
)
{
loggerStreams
=
loggerStreams
.
concat
(
options
.
streams
)
}
this
.
inner
=
pino
(
loggerOptions
,
pinoms
.
multistream
(
loggerStreams
))
this
.
inner
=
pino
(
loggerOptions
,
pinoms
.
multistream
(
loggerStreams
))
}
}
...
...
packages/hardhat-ovm/src/index.ts
View file @
c949803f
...
@@ -47,8 +47,9 @@ const getOvmSolcPath = async (version: string): Promise<string> => {
...
@@ -47,8 +47,9 @@ const getOvmSolcPath = async (version: string): Promise<string> => {
const
ovmCompilersCache
=
path
.
join
(
await
getCompilersDir
(),
'
ovm
'
)
const
ovmCompilersCache
=
path
.
join
(
await
getCompilersDir
(),
'
ovm
'
)
// Need to create the OVM compiler cache folder if it doesn't already exist.
// Need to create the OVM compiler cache folder if it doesn't already exist.
if
(
!
fs
.
existsSync
(
ovmCompilersCache
))
if
(
!
fs
.
existsSync
(
ovmCompilersCache
))
{
[
fs
.
mkdirSync
(
ovmCompilersCache
,
{
recursive
:
true
})]
fs
.
mkdirSync
(
ovmCompilersCache
,
{
recursive
:
true
})
}
// Pull information about the latest commit in the solc-bin repo. We'll use this to invalidate
// Pull information about the latest commit in the solc-bin repo. We'll use this to invalidate
// our compiler cache if necessary.
// our compiler cache if necessary.
...
@@ -186,7 +187,9 @@ subtask(
...
@@ -186,7 +187,9 @@ subtask(
}
}
}
}
if
(
Object
.
keys
(
ovmInput
.
sources
).
length
===
0
)
return
{}
if
(
Object
.
keys
(
ovmInput
.
sources
).
length
===
0
)
{
return
{}
}
// Build both inputs separately.
// Build both inputs separately.
const
ovmOutput
=
await
hre
.
run
(
TASK_COMPILE_SOLIDITY_RUN_SOLCJS
,
{
const
ovmOutput
=
await
hre
.
run
(
TASK_COMPILE_SOLIDITY_RUN_SOLCJS
,
{
...
...
tslint.base.json
View file @
c949803f
...
@@ -27,7 +27,8 @@
...
@@ -27,7 +27,8 @@
"variable-name"
:
false
,
"variable-name"
:
false
,
"no-focused-test"
:
true
,
"no-focused-test"
:
true
,
"array-type"
:
false
,
"array-type"
:
false
,
"prettier"
:
[
true
,
"./.prettierrc.json"
]
"prettier"
:
[
true
,
"./.prettierrc.json"
],
"curly"
:
true
},
},
"linterOptions"
:
{
"linterOptions"
:
{
"exclude"
:
[
"exclude"
:
[
...
...
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