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: Separate TransactionRequest and TransactionRequestBuilder #605

Merged
merged 17 commits into from
Dec 2, 2024

Conversation

igamigo
Copy link
Collaborator

@igamigo igamigo commented Nov 20, 2024

Closes #580

@igamigo igamigo marked this pull request as ready for review November 25, 2024 17:49
Copy link
Collaborator

@tomyrd tomyrd left a comment

Choose a reason for hiding this comment

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

LGTM! TransactionRequest looks a lot cleaner now.

@igamigo igamigo requested a review from bobbinth November 28, 2024 17:05
Copy link
Collaborator

@SantiagoPittella SantiagoPittella left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -1,65 +1,38 @@
//! Contains structures and functions related to transaction creation.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we keep this top level documentation? This is the docs that the rust docs pages will use to describe the whole mod.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, I believe when I moved things around I removed it accidentally. also moved the struct header below the imports.

Copy link
Contributor

@bobbinth bobbinth left a comment

Choose a reason for hiding this comment

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

Looks good! Thank you!

A potentially different alternative to error handling could have been to fail only on TransactionRequestBuilder::build() method instead of on the individual property setters. But it has its own pros and cons, and if we decide to do it that way, it can be done in a different PR.

@igamigo igamigo merged commit 5f92f26 into next Dec 2, 2024
15 checks passed
@igamigo igamigo deleted the igamigo-tx-request-builder branch December 2, 2024 19:06
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.

4 participants