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

align ordinal to be first in recipient output #666

Merged
merged 3 commits into from
Oct 18, 2022

Conversation

raphjaph
Copy link
Collaborator

No description provided.

src/subcommand/wallet/transaction_builder.rs Outdated Show resolved Hide resolved
src/subcommand/wallet/send.rs Outdated Show resolved Hide resolved
src/subcommand/wallet/transaction_builder.rs Outdated Show resolved Hide resolved
src/subcommand/wallet/transaction_builder.rs Outdated Show resolved Hide resolved
src/subcommand/wallet/transaction_builder.rs Outdated Show resolved Hide resolved
src/subcommand/wallet/transaction_builder.rs Outdated Show resolved Hide resolved
src/subcommand/wallet/transaction_builder.rs Outdated Show resolved Hide resolved
Comment on lines 153 to 156
let _ordinal_output_idx = self
.outputs
.iter()
.position(|(address, _amount)| address == &self.recipient)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
let _ordinal_output_idx = self
.outputs
.iter()
.position(|(address, _amount)| address == &self.recipient)
self
.outputs
.iter()
.find(|(address, _amount)| address == &self.recipient)

src/subcommand/wallet/transaction_builder.rs Outdated Show resolved Hide resolved
src/subcommand/wallet/transaction_builder.rs Outdated Show resolved Hide resolved
@casey casey self-requested a review October 18, 2022 21:01
Copy link
Collaborator

@casey casey left a comment

Choose a reason for hiding this comment

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

Whoops

@casey casey enabled auto-merge (squash) October 18, 2022 21:15
@casey casey merged commit 1a329a1 into ordinals:master Oct 18, 2022
@raphjaph raphjaph deleted the wallet-align-ordinal branch October 19, 2022 21:27
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.

2 participants