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
f5e12c63
Commit
f5e12c63
authored
Jan 27, 2020
by
aniket-engg
Committed by
Aniket
Jan 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
devdoc & type
parent
82a999f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
deployer.ts
remix-tests/src/deployer.ts
+11
-2
testRunner.ts
remix-tests/tests/testRunner.ts
+2
-2
No files found.
remix-tests/src/deployer.ts
View file @
f5e12c63
import
async
from
'async'
var
remixLib
=
require
(
'remix-lib'
)
const
remixLib
=
require
(
'remix-lib'
)
import
Web3
from
'web3'
;
import
{
compilationInterface
}
from
'types'
;
export
function
deployAll
(
compileResult
:
object
,
web3
:
Web3
,
isAgain
:
boolean
,
callback
)
{
/**
* @dev Deploy all contracts from compilation result
* @param compileResult compilation result
* @param web3 web3 object
* @param isAgain If true, try deployment with gas double of estimation (used for Out-of-gas error only)
* @param callback Callback
*/
export
function
deployAll
(
compileResult
:
compilationInterface
,
web3
:
Web3
,
isAgain
:
boolean
,
callback
)
{
let
compiledObject
=
{}
let
contracts
=
{}
let
accounts
:
string
[]
=
[]
...
...
remix-tests/tests/testRunner.ts
View file @
f5e12c63
...
...
@@ -6,7 +6,7 @@ import { Provider } from 'remix-simulator'
import
{
compileFileOrFiles
}
from
'../dist/compiler'
import
{
deployAll
}
from
'../dist/deployer'
import
{
runTest
}
from
'../dist/index'
import
{
runTest
,
compilationInterface
}
from
'../dist/index'
import
{
ResultsInterface
,
TestCbInterface
,
ResultCbInterface
}
from
'../dist/index'
// deepEqualExcluding allows us to exclude specific keys whose values vary.
...
...
@@ -60,7 +60,7 @@ async function compileAndDeploy(filename: string, callback: Function) {
function
compile
(
next
:
Function
):
void
{
compileFileOrFiles
(
filename
,
false
,
{
accounts
},
next
)
},
function
deployAllContracts
(
compilationResult
:
object
,
asts
,
next
:
Function
):
void
{
function
deployAllContracts
(
compilationResult
:
compilationInterface
,
asts
,
next
:
Function
):
void
{
for
(
const
filename
in
asts
)
{
if
(
filename
.
endsWith
(
'_test.sol'
))
sourceASTs
[
filename
]
=
asts
[
filename
].
ast
...
...
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