Skip to content

Conversation

@jamillambert
Copy link
Collaborator

@jamillambert jamillambert commented Sep 12, 2025

Both signrawtransactionwithkey and signrawtransactionwithwallet use the type SignRawTransaction in types and model. But the policy is to have a type for all RPCs with the same name, this makes everything uniform and easier to use without having to search for the correct type.

  • Add aliases for these two RPC methods and a note in the docs explaining why.
  • Use the new aliases in the tests.
  • Run the formatter. Reordering reexports only.

Closes #357

Both `signrawtransactionwithkey` and `signrawtransactionwithwallet`
use the type `SignRawTransaction` in types and model.

Add aliases for these two RPC methods and a note in the docs explaining
why.
Both `signrawtransactionwithkey` and `signrawtransactionwithwallet`
use the type `SignRawTransaction` in types and model.
These now have their own type aliases.

Use the aliases in client and integration_test.
Copy link
Member

@tcharding tcharding left a comment

Choose a reason for hiding this comment

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

ACK 5b3fbcd

@tcharding tcharding merged commit c2ec425 into rust-bitcoin:master Sep 14, 2025
30 checks passed
blaze-smith470pm added a commit to blaze-smith470pm/corepc that referenced this pull request Sep 26, 2025
5b3fbcd455ed31c656c6241132161a919cfec113 Run the formatter (Jamil Lambert, PhD)
c84e07d322cb39b56dbc9aa13d9f77ef8c2c814d Use the type alias of SignRawTransaction (Jamil Lambert, PhD)
e0f1311ee5ac415fc1a6a9011f2907ee40953460 Type alias SignRawTransaction (Jamil Lambert, PhD)

Pull request description:

  Both `signrawtransactionwithkey` and `signrawtransactionwithwallet` use the type `SignRawTransaction` in types and model. But the policy is to have a type for all RPCs with the same name, this makes everything uniform and easier to use without having to search for the correct type.

  - Add aliases for these two RPC methods and a note in the docs explaining why.
  - Use the new aliases in the tests.
  - Run the formatter. Reordering reexports only.

  Closes #357

ACKs for top commit:
  tcharding:
    ACK 5b3fbcd455ed31c656c6241132161a919cfec113

Tree-SHA512: 9d8f7b29946c9fcbf91c064fc7ee0e96e2439b9c93b68b2c77b855984eead90501ae838ca61c8d10244e0cc5f580d305a5407ffc2d4f9aab91a3445cd3041d15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

signrawtransactionwithkey has no type or model with the same name

2 participants