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

Add command to list pending etchings #3732

Merged
merged 12 commits into from
May 17, 2024

Conversation

ldiego08
Copy link
Contributor

@ldiego08 ldiego08 commented May 6, 2024

Add a new ord wallet pending command to list pending etchings, as mentioned by @raphjaph on #3679.

Copy link
Collaborator

@raphjaph raphjaph 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 so far. Definitely also needs an integration test. You could put that in the tests/wallet/resume.rs file.

src/subcommand/wallet/pending.rs Outdated Show resolved Hide resolved
src/subcommand/wallet/pending.rs Outdated Show resolved Hide resolved
.pending_etchings()?
.into_iter()
.map(|(rune, entry)| {
let spaced_rune = rune.to_string().parse::<SpacedRune>().unwrap();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@raphjaph what's the best way to get a SpacedRune from a Rune?

Copy link
Collaborator

Choose a reason for hiding this comment

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

It's buried inside the entry struct. Something like this:

let spaced_rune = entry.output.rune.unwrap().rune

Copy link
Collaborator

@raphjaph raphjaph left a comment

Choose a reason for hiding this comment

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

Still needs an integration test. You could put that in /tests/wallet/resume.rs probably

.pending_etchings()?
.into_iter()
.map(|(rune, entry)| {
let spaced_rune = rune.to_string().parse::<SpacedRune>().unwrap();
Copy link
Collaborator

Choose a reason for hiding this comment

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

It's buried inside the entry struct. Something like this:

let spaced_rune = entry.output.rune.unwrap().rune

@ldiego08 ldiego08 requested a review from raphjaph May 13, 2024 00:05
Copy link
Collaborator

@raphjaph raphjaph left a comment

Choose a reason for hiding this comment

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

Nice, LGTM!

@raphjaph raphjaph merged commit 8b83b74 into ordinals:master May 17, 2024
5 checks passed
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.

None yet

2 participants