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
7bb6c30c
Unverified
Commit
7bb6c30c
authored
Jul 02, 2021
by
bunsenstraat
Committed by
GitHub
Jul 02, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1350 from ethereum/debugcrash
fix debugger crash
parents
8a250941
159d508e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
solidity-state.tsx
...mix-ui/debugger-ui/src/lib/vm-debugger/solidity-state.tsx
+4
-0
solidityTypeFormatter.ts
libs/remix-ui/debugger-ui/src/utils/solidityTypeFormatter.ts
+5
-1
No files found.
libs/remix-ui/debugger-ui/src/lib/vm-debugger/solidity-state.tsx
View file @
7bb6c30c
...
...
@@ -5,6 +5,7 @@ import { ExtractData } from '../../types' // eslint-disable-line
export
const
SolidityState
=
({
calldata
,
message
})
=>
{
const
formatSelf
=
(
key
:
string
,
data
:
ExtractData
)
=>
{
try
{
let
color
=
'var(--primary)'
if
(
data
.
isArray
||
data
.
isStruct
||
data
.
isMapping
)
{
color
=
'var(--info)'
...
...
@@ -31,6 +32,9 @@ export const SolidityState = ({ calldata, message }) => {
</
label
>
</
label
>
)
}
catch
(
e
)
{
return
(<></>)
}
}
return
(
...
...
libs/remix-ui/debugger-ui/src/utils/solidityTypeFormatter.ts
View file @
7bb6c30c
...
...
@@ -4,9 +4,10 @@ import { ExtractData } from '../types' // eslint-disable-line
export
function
extractData
(
item
,
parent
):
ExtractData
{
const
ret
:
ExtractData
=
{}
if
(
item
.
isProperty
)
{
if
(
item
.
isProperty
||
!
item
.
type
)
{
return
item
}
try
{
if
(
item
.
type
.
lastIndexOf
(
']'
)
===
item
.
type
.
length
-
1
)
{
ret
.
children
=
(
item
.
value
||
[]).
map
(
function
(
item
,
index
)
{
return
{
key
:
index
,
value
:
item
}
...
...
@@ -40,5 +41,8 @@ export function extractData (item, parent): ExtractData {
ret
.
self
=
item
.
value
ret
.
type
=
item
.
type
}
}
catch
(
e
)
{
console
.
log
(
e
)
}
return
ret
}
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