Skip to content
New issue

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

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

Already on GitHub? # to your account

internal/ethapi: default to 0x00-account instead of local accounts for calls #20702

Merged
merged 2 commits into from
Feb 25, 2020

Conversation

holiman
Copy link
Contributor

@holiman holiman commented Feb 20, 2020

This PR fixes #20685 by defaulting to nil-account.

@fjl fjl changed the title ethapi: default to 0x00-account instead of local accounts for calls internal/ethapi: default to 0x00-account instead of local accounts for calls Feb 20, 2020
Copy link
Member

@karalabe karalabe left a comment

Choose a reason for hiding this comment

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

LGTM

@fjl fjl merged commit fadf84a into ethereum:master Feb 25, 2020
@fjl fjl added this to the 1.9.12 milestone Feb 25, 2020
pull bot pushed a commit to scope-demo/go-ethereum that referenced this pull request Feb 25, 2020
This makes eth_call and eth_estimateGas use the zero address
as sender when the "from" parameter is not supplied.

Co-authored-by: Felix Lange <fjl@twurst.com>
tonyredondo pushed a commit to scope-demo/go-ethereum that referenced this pull request Feb 27, 2020
* internal/ethapi: default to zero address for calls (ethereum#20702)

This makes eth_call and eth_estimateGas use the zero address
as sender when the "from" parameter is not supplied.

Co-authored-by: Felix Lange <fjl@twurst.com>

* les: separate peer into clientPeer and serverPeer (ethereum#19991)

* les: separate peer into clientPeer and serverPeer

* les: address comments

* mobile: add CallOpts.SetFrom (ethereum#20721)

This was missing because I forgot to wrap it when bind.CallOpts.From
as added.

* crypto/bn256: fix import line (ethereum#20723)

* p2p/discv5: fix test on go 1.14 (ethereum#20724)

Co-authored-by: Martin Holst Swende <martin@swende.se>
Co-authored-by: Felix Lange <fjl@twurst.com>
Co-authored-by: gary rong <garyrong0905@gmail.com>
Co-authored-by: Adam Schmideg <adamschmideg@users.noreply.github.com>
kjx98 pushed a commit to kjx98/go-ethereum that referenced this pull request Mar 17, 2020
This makes eth_call and eth_estimateGas use the zero address
as sender when the "from" parameter is not supplied.

Co-authored-by: Felix Lange <fjl@twurst.com>
enriquefynn pushed a commit to enriquefynn/go-ethereum that referenced this pull request Mar 10, 2021
This makes eth_call and eth_estimateGas use the zero address
as sender when the "from" parameter is not supplied.

Co-authored-by: Felix Lange <fjl@twurst.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Discrepency on eth_call rpc responses when the from field is omitted
3 participants