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

feat(primitives): transaction encoding tests #103

Merged
merged 6 commits into from
Oct 19, 2022
Merged

Conversation

Rjected
Copy link
Member

@Rjected Rjected commented Oct 19, 2022

Adds tests on top of #102 for signed transaction encoding and decoding

Changes Signature to use odd_y_parity: bool instead of a u8

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

one leftover, I think.

nice, needs rebase once blocking PR merged

Comment on lines 762 to 757
// let recovered = tx.recover().unwrap();
// let expected: Address = "0xa12e1462d0ced572f396f58b6e2d03894cd7c8a4".parse().unwrap();
// assert_eq!(expected, recovered);
Copy link
Collaborator

Choose a reason for hiding this comment

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

needed?

Copy link
Member Author

Choose a reason for hiding this comment

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

we should uncomment this test once recovery is implemented. should that be in this PR or should we add an issue for it / do later?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I see

should we add an issue for it

sgtm!

@mattsse mattsse added C-enhancement New feature or request C-test A change that impacts how or what we test labels Oct 19, 2022
@Rjected Rjected merged commit 0ff0ffa into main Oct 19, 2022
@Rjected Rjected deleted the dan/tx-encoding-tests branch October 19, 2022 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement New feature or request C-test A change that impacts how or what we test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants