Skip to content

Migrate ChangeSpendPolicy type to procedural macros#737

Merged
thunderbiscuit merged 2 commits intobitcoindevkit:masterfrom
thunderbiscuit:feature/proc-macros
Apr 24, 2025
Merged

Migrate ChangeSpendPolicy type to procedural macros#737
thunderbiscuit merged 2 commits intobitcoindevkit:masterfrom
thunderbiscuit:feature/proc-macros

Conversation

@thunderbiscuit
Copy link
Copy Markdown
Member

@thunderbiscuit thunderbiscuit commented Apr 23, 2025

This one is done as a remote type.

Let me know if you have any questions!

The second commit is addressing clippy warnings of unused imports.

@thunderbiscuit thunderbiscuit self-assigned this Apr 23, 2025
@thunderbiscuit thunderbiscuit requested a review from reez April 23, 2025 14:31
Comment thread bdk-ffi/src/tx_builder.rs
use std::str::FromStr;
use std::sync::Arc;

type ChangeSpendPolicy = bdk_wallet::ChangeSpendPolicy;
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.

more out of curiosity (and not having as many reps as you on this) than me thinking its wrong or anything, what made you have to do this (function, aesthetic, etc)?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah it's weird. This is how you have to do it for remote types. I'm still not sure how that works internally. Their docs are sparse. https://mozilla.github.io/uniffi-rs/latest/types/remote_ext_types.html#remote-types

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.

there's a lot of new stuff that's pretty interesting with this. Thanks for the link!

Copy link
Copy Markdown
Collaborator

@reez reez left a comment

Choose a reason for hiding this comment

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

ACK 8429a0e

I'm assuming tests pass

@thunderbiscuit thunderbiscuit merged commit 602ab7c into bitcoindevkit:master Apr 24, 2025
26 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.

2 participants