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:
WilliamXieCrypto
2022-03-21 11:40:24 +00:00
committed by GitHub
co-authored by Federico Kunze Küllmer
parent b4ce7cac60
commit 01bc2ec170
3 changed files with 39 additions and 2 deletions
+2 -2
View File
@@ -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))
}