-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add era-specific serialization support for transactions (#441)
* Add era-specific serialization support for transactions Refactor transaction serialization logic to include era-specific behavior, ensuring compatibility with different Cardano eras. Update various test cases and integration tests to reflect these changes, and add logging for better traceability. * Update era checks for null safety and consistency Ensure that era checks account for null values before comparison, improving reliability. This change affects the `TransactionWitnessSet`, `SerializationUtil`, and `ScriptDataHashGenerator` classes, aligning all era validations with the updated approach. * Set default era to Babbage if PlutusV1 exists Updated ScriptDataHashGenerator to set the default era to Babbage when PlutusV1 scripts are detected and the era is not specified. This ensures compatibility with Babbage-era scripts while preserving existing behavior for other scenarios. Added tests to validate this behavior.
- Loading branch information
Showing
55 changed files
with
724 additions
and
334 deletions.
There are no files selected for viewing
8 changes: 3 additions & 5 deletions
8
common-spec/src/main/java/com/bloxbean/cardano/client/spec/Era.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.