Skip to content

Deriving Deserialize for FundRawTransactionOptions #319

Open
@casey

Description

@casey

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions