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
80e0f20c
Commit
80e0f20c
authored
Dec 11, 2017
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix compiler input ref
parent
b2d9ae0a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
44 deletions
+4
-44
storageDecoder.js
remix-solidity/test/decoder/storageDecoder.js
+2
-22
storageLocation.js
remix-solidity/test/decoder/storageLocation.js
+2
-22
No files found.
remix-solidity/test/decoder/storageDecoder.js
View file @
80e0f20c
...
@@ -3,6 +3,8 @@ var tape = require('tape')
...
@@ -3,6 +3,8 @@ var tape = require('tape')
var
compiler
=
require
(
'solc'
)
var
compiler
=
require
(
'solc'
)
var
stateDecoder
=
require
(
'../../src/decoder/stateDecoder'
)
var
stateDecoder
=
require
(
'../../src/decoder/stateDecoder'
)
var
MockStorageResolver
=
require
(
'./mockStorageResolver'
)
var
MockStorageResolver
=
require
(
'./mockStorageResolver'
)
var
remixLib
=
require
(
'remix-lib'
)
var
compilerInput
=
remixLib
.
helpers
.
compiler
.
compilerInput
tape
(
'solidity'
,
function
(
t
)
{
tape
(
'solidity'
,
function
(
t
)
{
t
.
test
(
'storage decoder'
,
function
(
st
)
{
t
.
test
(
'storage decoder'
,
function
(
st
)
{
...
@@ -269,25 +271,3 @@ function testStructArrayStorage (st, cb) {
...
@@ -269,25 +271,3 @@ function testStructArrayStorage (st, cb) {
cb
()
cb
()
})
})
}
}
function
compilerInput
(
contracts
)
{
return
JSON
.
stringify
({
language
:
'Solidity'
,
sources
:
{
'test.sol'
:
{
content
:
contracts
}
},
settings
:
{
optimizer
:
{
enabled
:
false
,
runs
:
500
}
},
outputSelection
:
{
'*'
:
{
'*'
:
[
'metadata'
,
'evm.bytecode'
,
'abi'
,
'legacyAST'
,
'metadata'
,
'evm.assembly'
,
'evm.methodIdentifiers'
,
'evm.gasEstimates'
]
}
}
})
}
remix-solidity/test/decoder/storageLocation.js
View file @
80e0f20c
...
@@ -3,6 +3,8 @@ var tape = require('tape')
...
@@ -3,6 +3,8 @@ var tape = require('tape')
var
compiler
=
require
(
'solc'
)
var
compiler
=
require
(
'solc'
)
var
stateDecoder
=
require
(
'../../src/decoder/stateDecoder'
)
var
stateDecoder
=
require
(
'../../src/decoder/stateDecoder'
)
var
contracts
=
require
(
'./contracts/miscContracts'
)
var
contracts
=
require
(
'./contracts/miscContracts'
)
var
remixLib
=
require
(
'remix-lib'
)
var
compilerInput
=
remixLib
.
helpers
.
compiler
.
compilerInput
tape
(
'solidity'
,
function
(
t
)
{
tape
(
'solidity'
,
function
(
t
)
{
t
.
test
(
'storage location'
,
function
(
st
)
{
t
.
test
(
'storage location'
,
function
(
st
)
{
...
@@ -55,25 +57,3 @@ function checkLocation (st, location, slot, offset) {
...
@@ -55,25 +57,3 @@ function checkLocation (st, location, slot, offset) {
st
.
equal
(
location
.
offset
,
offset
)
st
.
equal
(
location
.
offset
,
offset
)
st
.
equal
(
location
.
slot
,
slot
)
st
.
equal
(
location
.
slot
,
slot
)
}
}
function
compilerInput
(
contracts
)
{
return
JSON
.
stringify
({
language
:
'Solidity'
,
sources
:
{
'test.sol'
:
{
content
:
contracts
}
},
settings
:
{
optimizer
:
{
enabled
:
false
,
runs
:
500
}
},
outputSelection
:
{
'*'
:
{
'*'
:
[
'metadata'
,
'evm.bytecode'
,
'abi'
,
'legacyAST'
,
'metadata'
,
'evm.assembly'
,
'evm.methodIdentifiers'
,
'evm.gasEstimates'
]
}
}
})
}
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