Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

json-rpc web3_sha3 #824

Merged
merged 4 commits into from Mar 26, 2016
Merged

json-rpc web3_sha3 #824

merged 4 commits into from Mar 26, 2016

Conversation

NikVolf
Copy link
Contributor

@NikVolf NikVolf commented Mar 26, 2016

No description provided.

@NikVolf NikVolf added the A0-pleasereview 🤓 Pull request needs code review. label Mar 26, 2016
fn sha3(&self, params: Params) -> Result<Value, Error> {
from_params::<(Bytes,)>(params).and_then(
|(data,)| {
let sha3 = data.to_vec().sha3();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What type is data here? Is there a copy created in to_vec?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's a byte array as i guess all the data specified in the json-rpc
there is only one example in wiki and it's a hex-encoded bytes

@arkpar arkpar added A5-grumble 🔥 Pull request has minor issues that must be addressed before merging. and removed A0-pleasereview 🤓 Pull request needs code review. labels Mar 26, 2016
@NikVolf NikVolf added A0-pleasereview 🤓 Pull request needs code review. and removed A5-grumble 🔥 Pull request has minor issues that must be addressed before merging. labels Mar 26, 2016
@NikVolf
Copy link
Contributor Author

NikVolf commented Mar 26, 2016

@arkpar added wiki test, passes

[ci-skip]
@gavofyork
Copy link
Contributor

only removed two new lines so not bothering to redo CI.

@gavofyork gavofyork merged commit 8ea53b6 into master Mar 26, 2016
@gavofyork gavofyork deleted the web3-sha3 branch March 26, 2016 10:20
@gavofyork gavofyork added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Mar 26, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants