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
b44aa544
Unverified
Commit
b44aa544
authored
Nov 12, 2019
by
Aniket
Committed by
GitHub
Nov 12, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1325 from ethereum/remix-tests-CLI-issue
initiate provider
parents
16cea52a
0d9675f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
run.ts
remix-tests/src/run.ts
+4
-4
No files found.
remix-tests/src/run.ts
View file @
b44aa544
...
...
@@ -35,7 +35,7 @@ commander.command('help').description('output usage information').action(functio
// get current version
commander
.
option
(
'-v, --verbose <level>'
,
'run with verbosity'
,
mapVerbosity
)
.
action
((
filename
)
=>
{
.
action
(
async
(
filename
)
=>
{
// Console message
console
.
log
(
colors
.
white
(
'
\
n
\
t👁
\
t:: Running remix-tests - Unit testing for solidity ::
\
t👁
\
n'
))
// set logger verbosity
...
...
@@ -44,9 +44,9 @@ commander
log
.
info
(
'verbosity level set to '
+
commander
.
verbose
.
blue
)
}
let
web3
=
new
Web3
()
// web3.setProvider(new web3.providers.HttpProvider('http://localhost:8545')
)
web3
.
setProvider
(
new
Provider
()
)
// web3.setProvider(new web3.providers.WebsocketProvider('ws://localhost:8546')
)
const
provider
=
new
Provider
(
)
await
provider
.
init
(
)
web3
.
setProvider
(
provider
)
if
(
!
fs
.
existsSync
(
filename
))
{
console
.
error
(
filename
+
' not found'
)
...
...
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