Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPC Hexify #609

Merged
merged 13 commits into from
Apr 1, 2015
Merged

RPC Hexify #609

merged 13 commits into from
Apr 1, 2015

Conversation

tgerring
Copy link
Contributor

Requirements for calls differ from transactions
Benefits from automatic output formatting differences between
quantities and data
Now formats based on underlying hexdata or hexnum type. Fields directly
with respective constructors that cover from native types
@tgerring tgerring changed the title Hexify RPC Hexify Mar 31, 2015
Improving this in the future will allow for cleaning up a bit of legacy
code.
func newHexData(input interface{}) *hexdata {
d := new(hexdata)

switch input.(type) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Change this to

switch input := input.(type) {
case common.Hash:
    d.data = input.Bytes()
}

No need to do the extra type assertions

@obscuren obscuren merged commit 02fb837 into ethereum:develop Apr 1, 2015
ngtuna added a commit to ngtuna/tomochain that referenced this pull request Aug 7, 2019
…-orders-after-waking-up

Sync orders after sdkNodes wake up
ngtuna added a commit to ngtuna/tomochain that referenced this pull request Aug 7, 2019
ngtuna added a commit to ngtuna/tomochain that referenced this pull request Aug 8, 2019
tony-ricciardi pushed a commit to tony-ricciardi/go-ethereum that referenced this pull request Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants