Skip to content

Conversation

@blackdevelopa
Copy link
Contributor

@blackdevelopa blackdevelopa commented Sep 7, 2023

Explanation

This PR includes transaction type if it's 0x0 when normalising transactions

Changelog

@metamask/transaction-controller

  • ADDED: Includ transaction?.type when normalising transaction.

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've highlighted breaking changes using the "BREAKING" category above as appropriate

}
}

if (transaction?.type === '0x0') {
Copy link
Member

Choose a reason for hiding this comment

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

Rather than hard coding this, should we not add an additional entry to NORMALIZERS above?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great feedback. Implemented here. Will be closing this PR

@blackdevelopa
Copy link
Contributor Author

Closing this PR in favour of #1672

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.

3 participants