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
0daf7f19
Commit
0daf7f19
authored
Jun 01, 2021
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add missing redeploy with double gas
parent
79ebac8e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
runTestFiles.ts
libs/remix-tests/src/runTestFiles.ts
+10
-3
No files found.
libs/remix-tests/src/runTestFiles.ts
View file @
0daf7f19
...
@@ -63,9 +63,16 @@ export function runTestFiles (filepath: string, isDirectory: boolean, web3: Web3
...
@@ -63,9 +63,16 @@ export function runTestFiles (filepath: string, isDirectory: boolean, web3: Web3
}
}
deployAll
(
compilationResult
,
web3
,
false
,
(
err
,
contracts
)
=>
{
deployAll
(
compilationResult
,
web3
,
false
,
(
err
,
contracts
)
=>
{
if
(
err
)
{
if
(
err
)
{
next
(
err
)
// If contract deployment fails because of 'Out of Gas' error, try again with double gas
}
// This is temporary, should be removed when remix-tests will have a dedicated UI to
next
(
null
,
compilationResult
,
contracts
)
// accept deployment params from UI
if
(
err
.
message
.
includes
(
'The contract code couldn
\'
t be stored, please check your gas limit'
))
{
deployAll
(
compilationResult
,
web3
,
true
,
(
error
,
contracts
)
=>
{
if
(
error
)
next
([{
message
:
'contract deployment failed after trying twice: '
+
error
.
message
,
severity
:
'error'
}])
// IDE expects errors in array
else
next
(
null
,
compilationResult
,
contracts
)
})
}
else
{
next
([{
message
:
'contract deployment failed: '
+
err
.
message
,
severity
:
'error'
}])
}
// IDE expects errors in array
}
else
{
next
(
null
,
compilationResult
,
contracts
)
}
})
})
},
},
function
determineTestContractsToRun
(
compilationResult
:
compilationInterface
,
contracts
:
any
,
next
)
{
function
determineTestContractsToRun
(
compilationResult
:
compilationInterface
,
contracts
:
any
,
next
)
{
...
...
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