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
696567fc
Unverified
Commit
696567fc
authored
Mar 20, 2019
by
yann300
Committed by
GitHub
Mar 20, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1137 from andremedeiros/fix/handle-bignumber-conversion-on-hash-without-prefix
fix: handle bignumber conversion on hash without prefix
parents
de7f09f1
58eb6962
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
util.js
remix-debug/src/solidity-decoder/types/util.js
+2
-2
No files found.
remix-debug/src/solidity-decoder/types/util.js
View file @
696567fc
...
...
@@ -75,8 +75,8 @@ async function extractHexValue (location, storageResolver, byteLength) {
function
toBN
(
value
)
{
if
(
value
instanceof
BN
)
{
return
value
}
else
if
(
value
.
indexOf
&&
value
.
indexOf
(
'0x'
)
===
0
)
{
value
=
ethutil
.
unpad
(
value
.
replace
(
'Ox'
,
''
))
}
else
if
(
value
.
match
&&
value
.
match
(
/^
(?:
0x
)?(?<
hash>
[
a-f0-9
])
*$/
)
)
{
value
=
ethutil
.
unpad
(
value
.
replace
(
/^
(
0x
)
/
,
''
))
value
=
new
BN
(
value
===
''
?
'0'
:
value
,
16
)
}
else
if
(
!
isNaN
(
value
))
{
value
=
new
BN
(
value
)
...
...
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