Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
889a5e0c
Commit
889a5e0c
authored
Nov 30, 2016
by
Péter Szilágyi
Committed by
GitHub
Nov 30, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3368 from bas-vk/sha3
node: improve error handling for web3_sha3 RPC method
parents
9f8bc00c
1fc5cc1b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
api.go
node/api.go
+3
-3
No files found.
node/api.go
View file @
889a5e0c
...
@@ -21,7 +21,7 @@ import (
...
@@ -21,7 +21,7 @@ import (
"strings"
"strings"
"time"
"time"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common
/hexutil
"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/p2p"
"github.com/ethereum/go-ethereum/p2p"
"github.com/ethereum/go-ethereum/p2p/discover"
"github.com/ethereum/go-ethereum/p2p/discover"
...
@@ -331,6 +331,6 @@ func (s *PublicWeb3API) ClientVersion() string {
...
@@ -331,6 +331,6 @@ func (s *PublicWeb3API) ClientVersion() string {
// Sha3 applies the ethereum sha3 implementation on the input.
// Sha3 applies the ethereum sha3 implementation on the input.
// It assumes the input is hex encoded.
// It assumes the input is hex encoded.
func
(
s
*
PublicWeb3API
)
Sha3
(
input
string
)
string
{
func
(
s
*
PublicWeb3API
)
Sha3
(
input
hexutil
.
Bytes
)
hexutil
.
Bytes
{
return
c
ommon
.
ToHex
(
crypto
.
Keccak256
(
common
.
FromHex
(
input
))
)
return
c
rypto
.
Keccak256
(
input
)
}
}
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