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

Deriving Deserialize for FundRawTransactionOptions #319

Open
casey opened this issue Nov 23, 2023 · 0 comments
Open

Deriving Deserialize for FundRawTransactionOptions #319

casey opened this issue Nov 23, 2023 · 0 comments

Comments

@casey
Copy link
Contributor

casey commented Nov 23, 2023

We have a mock bitcoin core rpc server which we use for tests. We want to use fundrawtransaction, but to do so, we need to implement Deserialize on FundRawTransactionOptions so that during testing, the test server can deserialize the RPC arguments.

It isn't possible to #[derive(Deserialize)] on FundRawTransactionOptions because the change_address field is an Option<Address>, and Address doesn't implement Deserialize, only Address<NetworkUnchecked> implements Deserialize.

Is there a workaround for this?

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

No branches or pull requests

1 participant