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
20df4ba6
Commit
20df4ba6
authored
Mar 09, 2021
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix#943
parent
4f5fe95b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
1 deletion
+21
-1
verifyContracts.ts
apps/remix-ide-e2e/src/commands/verifyContracts.ts
+1
-0
compiler_api.test.ts
apps/remix-ide-e2e/src/tests/compiler_api.test.ts
+19
-0
renderer.js
apps/remix-ide/src/app/ui/renderer.js
+1
-1
No files found.
apps/remix-ide-e2e/src/commands/verifyContracts.ts
View file @
20df4ba6
...
...
@@ -27,6 +27,7 @@ function getCompiledContracts (browser: NightwatchBrowser, opts: { wait: number,
.
click
(
'*[data-id="treeViewDivcompiler"]'
)
.
waitForElementVisible
(
'*[data-id="treeViewLicompiler/version"]'
)
.
assert
.
containsText
(
'*[data-id="treeViewLicompiler/version"]'
,
`version:\n
${
opts
.
version
}
`
)
.
modalFooterCancelClick
()
.
perform
(
done
)
}
else
done
()
})
...
...
apps/remix-ide-e2e/src/tests/compiler_api.test.ts
View file @
20df4ba6
...
...
@@ -52,6 +52,16 @@ module.exports = {
.
pause
(
5000
)
.
addFile
(
'test_updateConfiguration.sol'
,
{
content
:
simpleContract
})
.
verifyContracts
([
'StorageTestUpdateConfiguration'
],
{
wait
:
5000
,
version
:
'0.6.8+commit.0bbfe453'
})
},
'Should produce a stack too deep error'
:
function
(
browser
:
NightwatchBrowser
)
{
browser
.
clickLaunchIcon
(
'fileExplorers'
)
.
click
(
'li[data-id="treeViewLitreeViewItemREADME.txt"'
)
.
addFile
(
'ContractStackLimit.sol'
,
{
content
:
contractStackLimit
})
.
clickLaunchIcon
(
'solidity'
)
.
waitForElementPresent
(
'[data-id="compiledErrors"] div:nth-child(2)'
,
45000
)
.
waitForElementContainsText
(
'*[data-id="compiledErrors"]'
,
'CompilerError: Stack too deep when compiling inline assembly: Variable headStart is 1 slot(s) too deep inside the stack.'
)
.
end
()
},
...
...
@@ -156,3 +166,12 @@ const updateConfiguration = `(async () => {
console.log(e.message)
}
})()`
const
contractStackLimit
=
`
//SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.1;
contract DoesNotCompile {
uint u;
function fStackLimit(uint u1, uint u2, uint u3, uint u4, uint u5, uint u6, uint u7, uint u8, uint u9, uint u10, uint u11, uint u12) public {
}
}`
apps/remix-ide/src/app/ui/renderer.js
View file @
20df4ba6
...
...
@@ -112,7 +112,7 @@ Renderer.prototype.error = function (message, container, opt) {
// Updated error reported includes '-->' before file details
const
errorDetails
=
text
.
split
(
'-->'
)
// errorDetails[1] will have file details
position
=
getPositionDetails
(
errorDetails
[
1
])
if
(
errorDetails
.
length
>
1
)
position
=
getPositionDetails
(
errorDetails
[
1
])
}
opt
.
errLine
=
position
.
errLine
...
...
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