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
e144e82e
Unverified
Commit
e144e82e
authored
Jun 02, 2021
by
Liana Husikyan
Committed by
GitHub
Jun 02, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into bultinf
parents
b1e699f4
8c767694
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
58 additions
and
5 deletions
+58
-5
debugger.spec.ts
apps/remix-ide-e2e/src/tests/debugger.spec.ts
+53
-0
remixAppManager.js
apps/remix-ide/src/remixAppManager.js
+1
-1
remix-ui-workspace.tsx
libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx
+4
-4
No files found.
apps/remix-ide-e2e/src/tests/debugger.spec.ts
View file @
e144e82e
...
...
@@ -207,6 +207,25 @@ module.exports = {
As we are only testing if debugger is active, this is ok to keep that for now.
*/
.
waitForElementContainsText
(
'*[data-id="stepdetail"]'
,
'vm trace step:
\
n154'
,
60000
)
},
'Should start debugging using remix debug nodes (rinkeby)'
:
function
(
browser
:
NightwatchBrowser
)
{
browser
.
addFile
(
'useDebugNodes.sol'
,
sources
[
5
][
'useDebugNodes.sol'
])
// compile contract
.
clickLaunchIcon
(
'udapp'
)
.
click
(
'*[data-id="settingsWeb3Mode"]'
)
// select web3 provider with debug nodes URL
.
clearValue
(
'*[data-id="modalDialogCustomPromptText"]'
)
.
setValue
(
'*[data-id="modalDialogCustomPromptText"]'
,
'https://remix-rinkeby.ethdevops.io'
)
.
modalFooterOKClick
()
.
waitForElementPresent
(
'*[title="Deploy - transact (not payable)"]'
,
65000
)
// wait for the compilation to succeed
.
clickLaunchIcon
(
'debugger'
)
.
clearValue
(
'*[data-id="debuggerTransactionInput"]'
)
.
setValue
(
'*[data-id="debuggerTransactionInput"]'
,
'0x156dbf7d0f9b435dd900cfc8f3264d523dd25733418ddbea1ce53e294f421013'
)
.
click
(
'*[data-id="debugGeneratedSourcesLabel"]'
)
// unselect debug with generated sources
.
click
(
'*[data-id="debuggerTransactionStartButton"]'
)
.
waitForElementVisible
(
'*[data-id="solidityLocals"]'
,
60000
)
.
pause
(
10000
)
.
checkVariableDebug
(
'soliditylocals'
,
{
num
:
{
value
:
'2'
,
type
:
'uint256'
}
})
.
checkVariableDebug
(
'soliditystate'
,
{
number
:
{
value
:
'0'
,
type
:
'uint256'
,
constant
:
false
}
})
.
end
()
}
}
...
...
@@ -297,6 +316,40 @@ const sources = [
}
`
}
},
{
'useDebugNodes.sol'
:
{
content
:
`
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
/**
* @title Storage
* @dev Store & retrieve value in a variable
*/
contract Storage {
uint256 number;
/**
* @dev Store value in variable
* @param num value to store
*/
function store(uint256 num) public {
number = num;
}
/**
* @dev Return value
* @return value of 'number'
*/
function retrieve() public view returns (uint256){
return number;
}
}
`
}
}
]
...
...
apps/remix-ide/src/remixAppManager.js
View file @
e144e82e
...
...
@@ -9,7 +9,7 @@ const _paq = window._paq = window._paq || []
const
requiredModules
=
[
// services + layout views + system views
'manager'
,
'compilerArtefacts'
,
'compilerMetadata'
,
'contextualListener'
,
'editor'
,
'offsetToLineColumnConverter'
,
'network'
,
'theme'
,
'fileManager'
,
'contentImport'
,
'web3Provider'
,
'scriptRunner'
,
'fetchAndCompile'
,
'mainPanel'
,
'hiddenPanel'
,
'sidePanel'
,
'menuicons'
,
'filePanel'
,
'terminal'
,
'settings'
,
'pluginManager'
,
'tabs'
,
'udapp'
]
'filePanel'
,
'terminal'
,
'settings'
,
'pluginManager'
,
'tabs'
,
'udapp'
,
'dGitProvider'
]
const
dependentModules
=
[
'git'
,
'hardhat'
]
// module which shouldn't be manually activated (e.g git is activated by remixd)
...
...
libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx
View file @
e144e82e
...
...
@@ -53,13 +53,13 @@ export const Workspace = (props: WorkspaceProps) => {
return
setWorkspace
(
workspaceName
)
}
props
.
request
.
createNewFile
=
()
=>
{
if
(
!
state
.
workspaces
.
length
)
createNewWorkspace
(
'default_workspace'
)
props
.
request
.
createNewFile
=
async
()
=>
{
if
(
!
state
.
workspaces
.
length
)
await
createNewWorkspace
(
'default_workspace'
)
props
.
plugin
.
resetNewFile
()
}
props
.
request
.
uploadFile
=
(
target
)
=>
{
if
(
!
state
.
workspaces
.
length
)
createNewWorkspace
(
'default_workspace'
)
props
.
request
.
uploadFile
=
async
(
target
)
=>
{
if
(
!
state
.
workspaces
.
length
)
await
createNewWorkspace
(
'default_workspace'
)
setState
(
prevState
=>
{
return
{
...
prevState
,
uploadFileEvent
:
target
}
...
...
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