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
36a2d717
Commit
36a2d717
authored
Jan 10, 2020
by
aniket-engg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
catch and return deployment error in remix-tests
parent
807ffd97
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
deployer.ts
remix-tests/src/deployer.ts
+2
-1
runTestSources.ts
remix-tests/src/runTestSources.ts
+1
-1
No files found.
remix-tests/src/deployer.ts
View file @
36a2d717
...
...
@@ -102,7 +102,8 @@ export function deployAll(compileResult: object, web3: Web3, callback) {
let
funAbi
=
null
// no need to set the abi for encoding the constructor
let
params
=
''
// we suppose that the test contract does not have any param in the constructor
remixLib
.
execution
.
txFormat
.
encodeConstructorCallAndDeployLibraries
(
contractName
,
contract
.
raw
,
compileResult
,
params
,
funAbi
,
encodeDataFinalCallback
,
encodeDataStepCallback
,
encodeDataDeployLibraryCallback
)
},
function
()
{
},
function
(
err
)
{
if
(
err
)
next
(
err
)
next
(
null
,
contracts
)
})
}
...
...
remix-tests/src/runTestSources.ts
View file @
36a2d717
...
...
@@ -51,7 +51,7 @@ export async function runTestSources(contractSources: SrcIfc, versionUrl: string
}
deployAll
(
compilationResult
,
web3
,
(
err
,
contracts
)
=>
{
if
(
err
)
{
next
(
err
)
next
(
[{
message
:
'contract deployment failed: '
+
err
.
message
,
severity
:
'error'
}])
// IDE expects errors in array
}
next
(
null
,
compilationResult
,
contracts
)
...
...
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