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
d616f29b
Commit
d616f29b
authored
Sep 19, 2017
by
yann300
Committed by
GitHub
Sep 19, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #573 from ethereum/fixbytedecoding
byte decoding fix
parents
73d9a3a0
d7b1a8a3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ValueType.js
src/solidity/types/ValueType.js
+1
-1
SolidityTypeFormatter.js
src/ui/SolidityTypeFormatter.js
+1
-1
No files found.
src/solidity/types/ValueType.js
View file @
d616f29b
...
...
@@ -63,7 +63,7 @@ class ValueType {
decodeFromMemory
(
offset
,
memory
)
{
var
value
=
memory
.
substr
(
2
*
offset
,
64
)
return
{
value
:
this
.
decodeValue
(
util
.
extractHexByteSlice
(
value
,
this
.
storageBytes
,
0
)
),
value
:
this
.
decodeValue
(
value
),
type
:
this
.
typeName
}
}
...
...
src/ui/SolidityTypeFormatter.js
View file @
d616f29b
...
...
@@ -13,7 +13,7 @@ function formatSelf (key, data) {
if
(
data
.
type
===
'string'
)
{
data
.
self
=
JSON
.
stringify
(
data
.
self
)
}
return
yo
`<label style=
${
keyStyle
}
>
${
key
}
: <label style=
${
style
}
>
${
data
.
self
}
</label><label style='font-style:italic'>
${
data
.
isProperty
?
''
:
' '
+
data
.
type
}
</label></label>`
return
yo
`<label style=
${
keyStyle
}
>
${
key
}
: <label style=
${
style
}
>
${
data
.
self
}
</label><label style='font-style:italic'>
${
data
.
isProperty
||
!
data
.
type
?
''
:
' '
+
data
.
type
}
</label></label>`
}
function
extractData
(
item
,
parent
,
key
)
{
...
...
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