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
e136ed30
Commit
e136ed30
authored
Apr 02, 2019
by
Iuri Matias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add eth_coinbase test
parent
bdb7ead3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
blocks.js
remix-simulator/test/blocks.js
+9
-1
No files found.
remix-simulator/test/blocks.js
View file @
e136ed30
...
@@ -6,7 +6,9 @@ var assert = require('assert')
...
@@ -6,7 +6,9 @@ var assert = require('assert')
describe
(
'blocks'
,
function
()
{
describe
(
'blocks'
,
function
()
{
before
(
function
()
{
before
(
function
()
{
let
provider
=
new
RemixSim
.
Provider
()
let
provider
=
new
RemixSim
.
Provider
({
coinbase
:
"0x0000000000000000000000000000000000000001"
})
web3
.
setProvider
(
provider
)
web3
.
setProvider
(
provider
)
})
})
...
@@ -43,4 +45,10 @@ describe('blocks', function () {
...
@@ -43,4 +45,10 @@ describe('blocks', function () {
let
gasPrice
=
await
web3
.
eth
.
getGasPrice
()
let
gasPrice
=
await
web3
.
eth
.
getGasPrice
()
assert
.
equal
(
gasPrice
,
1
)
assert
.
equal
(
gasPrice
,
1
)
})
})
it
(
'should get coinbase'
,
async
function
()
{
let
coinbase
=
await
web3
.
eth
.
getCoinbase
()
assert
.
equal
(
coinbase
,
"0x0000000000000000000000000000000000000001"
)
})
})
})
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