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

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 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.

2 participants