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

Tx optional from #1075

Merged
merged 5 commits into from
Mar 24, 2022
Merged

Tx optional from #1075

merged 5 commits into from
Mar 24, 2022

Conversation

meetmangukiya
Copy link
Contributor

@meetmangukiya meetmangukiya commented Mar 23, 2022

Motivation

Txs may not always have the from field set, make it optional and add method for being able to recover the same from signature and set it on the tx.

Solution

Allow txs that do not have a from field by defaulting to Address::zero() instead of making it optional to not break compat. Add method to recover the sender from signature and also set the same on the tx.

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog

@gakonst gakonst merged commit fa04247 into gakonst:master Mar 24, 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