forked from cerc-io/laconicd-deprecated
fix: Update the JSON-RPC to correct the return information. (#1006)
* fix: Update the JSON-RPC to correct the return information. * Update CHANGELOG.md * update: move the tests to integration_test.go * refactor the tests and use table tests instead Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
This commit is contained in:
co-authored by
Federico Kunze Küllmer
parent
b4ce7cac60
commit
01bc2ec170
@@ -21,6 +21,6 @@ func (a *PublicAPI) ClientVersion() string {
|
||||
}
|
||||
|
||||
// Sha3 returns the keccak-256 hash of the passed-in input.
|
||||
func (a *PublicAPI) Sha3(input hexutil.Bytes) hexutil.Bytes {
|
||||
return crypto.Keccak256(input)
|
||||
func (a *PublicAPI) Sha3(input string) hexutil.Bytes {
|
||||
return crypto.Keccak256(hexutil.Bytes(input))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user