Skip to content

issues/262 - Version should byte serialize as Option type.#266

Merged
cnorburn merged 3 commits into
mainfrom
issues/262
Apr 24, 2024
Merged

issues/262 - Version should byte serialize as Option type.#266
cnorburn merged 3 commits into
mainfrom
issues/262

Conversation

@meywood
Copy link
Copy Markdown
Collaborator

@meywood meywood commented Apr 24, 2024

No description provided.

@meywood meywood requested review from AB3rtz and cnorburn and removed request for AB3rtz April 24, 2024 10:38
serializeCustom(ser);

final Optional<AbstractCLValue<?, ?>> innerValue;
if (version == null) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'd use ternary here

Copy link
Copy Markdown
Collaborator Author

@meywood meywood Apr 24, 2024

Choose a reason for hiding this comment

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

It exceeds max line length as ternary so if else is preferable

@cnorburn cnorburn merged commit 86209dc into main Apr 24, 2024
@cnorburn cnorburn deleted the issues/262 branch April 24, 2024 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

StoredVersionedContractByHash and StoredVersionedContractByName should serialize version number as a CLOptionValue

2 participants