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
ed9a95df
Commit
ed9a95df
authored
Apr 21, 2017
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix test
parent
9f8ef396
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
util.js
src/helpers/util.js
+1
-1
No files found.
src/helpers/util.js
View file @
ed9a95df
...
@@ -133,7 +133,7 @@ module.exports = {
...
@@ -133,7 +133,7 @@ module.exports = {
* @return {Object} - return sha3ied value
* @return {Object} - return sha3ied value
*/
*/
sha3_256
:
function
(
value
)
{
sha3_256
:
function
(
value
)
{
if
(
typeof
value
===
'string'
&&
!
value
.
startsWith
(
'0x'
)
)
{
if
(
typeof
value
===
'string'
&&
value
.
indexOf
(
'0x'
)
!==
0
)
{
value
=
'0x'
+
value
value
=
'0x'
+
value
}
}
var
ret
=
ethutil
.
bufferToHex
(
ethutil
.
setLengthLeft
(
value
,
32
))
var
ret
=
ethutil
.
bufferToHex
(
ethutil
.
setLengthLeft
(
value
,
32
))
...
...
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