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

Add unit tests for JSON and RLP encoding/decoding of Celo Transactions #306

Merged
merged 7 commits into from
Jan 14, 2025

Conversation

Kourin1996
Copy link

@Kourin1996 Kourin1996 commented Jan 8, 2025

Closes #151

This PR adds tests for json and RLP encoding/decoding of the following Celo Tx types:

  • CeloLegacyTx
  • CeloDynamicFeeTx
  • CeloDynamicFeeTxV2
  • CeloDenominatedTx

@Kourin1996 Kourin1996 changed the title Kourin1996/add celo tx encoding decoding Adding unit tests for JSON and RLP encoding/decoding of Celo Transactions Jan 8, 2025
@Kourin1996 Kourin1996 marked this pull request as ready for review January 8, 2025 14:48
@Kourin1996 Kourin1996 changed the title Adding unit tests for JSON and RLP encoding/decoding of Celo Transactions Add unit tests for JSON and RLP encoding/decoding of Celo Transactions Jan 8, 2025
@Kourin1996 Kourin1996 self-assigned this Jan 9, 2025
Copy link

@piersy piersy left a comment

Choose a reason for hiding this comment

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

Once small update required, otherwise good.

@Kourin1996 Kourin1996 merged commit 751a105 into celo11 Jan 14, 2025
8 checks passed
@Kourin1996 Kourin1996 deleted the Kourin1996/add-celo-tx-encoding-decoding branch January 14, 2025 14:42
karlb pushed a commit that referenced this pull request Jan 27, 2025
#306)

* Add unit test for Celo Tx JSON marshaling

Format imports

Add test for CeloDenominatedTx

* Add unit test for Celo Tx JSON unmarshaling

* Add unit test for Celo Tx RLP encoding/decoding

* format and clean up unit tests for Celo Tx JSON marshaling/unmarshaling

* Replace assert.NoError with require.NoError

* Adds checks for presence of feeCurrency and maxFeeInFeeCurrency fields during unmarshalling of CeloDenominatedTx
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.

Add test for Handle migrated celo transactions PR
2 participants