Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Fix TransactionIsUnsigned on call with default from parameter #5512

Merged
merged 2 commits into from
Mar 5, 2019

Conversation

DimaStebaev
Copy link
Contributor

As written in https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_call there is an optional parameter "from". But if you make call without "from" and there are no keys in local wallet TransactionIsUnsigned exception is thrown because default sender value (zero address) in transaction confuse with no value.

I fixed this issue and added test to reproduce it.

@codecov-io
Copy link

Codecov Report

Merging #5512 into master will increase coverage by 0.03%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5512      +/-   ##
==========================================
+ Coverage   61.87%   61.91%   +0.03%     
==========================================
  Files         345      345              
  Lines       28716    28735      +19     
  Branches     3265     3265              
==========================================
+ Hits        17767    17790      +23     
+ Misses       9781     9778       -3     
+ Partials     1168     1167       -1

Copy link
Member

@chfast chfast left a comment

Choose a reason for hiding this comment

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

Excellent. Would you be able to reformat your unit test with clang-format?

@DimaStebaev
Copy link
Contributor Author

Yes. Sure. I am sorry for that.

Copy link
Member

@chfast chfast left a comment

Choose a reason for hiding this comment

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

Don't be sorry.

@halfalicious
Copy link
Contributor

Thank you very much for this work!

@chfast chfast merged commit 594f141 into ethereum:master Mar 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants