-
Notifications
You must be signed in to change notification settings - Fork 3
feat(tx-builder): improve TransactionBuilder::make_move_vec() docs
#336
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
Conversation
TransactionBuilder::make_move_vec()TransactionBuilder::make_move_vec() docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This example isn't about make_move_vec and tbh it's a worse way to use the builder so I say revert this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, do you think we should have a separate example about .make_move_vec then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, maybe
| }) | ||
| } | ||
|
|
||
| /// Make a move vector from a list of elements. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should also mention something like:
/// Often it is possible (and more efficient) to pass a rust slice or `Vec` instead of calling this function, which will serialize the bytes into a move vector pure argument.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, makes sense to add this comment, Can you come up with a valid use-case? Then I'ld add another example just for that, because currently .make_move_vec is not covered I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know of a valid use-case other than if there's something we can't do with the normal syntax that I'm not thinking of
Closes #296