Merge rust-bitcoin/rust-bitcoin#2734: fix(typo): examples/ecdsa-psbt.rs
f0093c0f1c
fix(typo): examples/ecdsa-psbt.rs (Jose Storopoli) Pull request description: "Creater" is a typo, it should be "Creator" role. Ref: https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki?plain=1#L660 ACKs for top commit: tcharding: ACKf0093c0f1c
apoelstra: ACKf0093c0f1c
Tree-SHA512: ccdae4979da2044b4fdf3a0522e5cb6d64b394baadb6107d5e58096d2741458085c6ef349924bc0aa64eca69b89e394eb16fbf890c86716608ee06d287828ff2
This commit is contained in:
commit
587b4fee47
|
@ -171,7 +171,7 @@ impl WatchOnly {
|
||||||
WatchOnly { account_0_xpub, input_xpub, master_fingerprint }
|
WatchOnly { account_0_xpub, input_xpub, master_fingerprint }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Creates the PSBT, in BIP174 parlance this is the 'Creater'.
|
/// Creates the PSBT, in BIP174 parlance this is the 'Creator'.
|
||||||
fn create_psbt<C: Verification>(&self, secp: &Secp256k1<C>) -> Result<Psbt> {
|
fn create_psbt<C: Verification>(&self, secp: &Secp256k1<C>) -> Result<Psbt> {
|
||||||
let to_address = Address::from_str(RECEIVE_ADDRESS)?.require_network(Network::Regtest)?;
|
let to_address = Address::from_str(RECEIVE_ADDRESS)?.require_network(Network::Regtest)?;
|
||||||
let to_amount = Amount::from_str(OUTPUT_AMOUNT_BTC)?;
|
let to_amount = Amount::from_str(OUTPUT_AMOUNT_BTC)?;
|
||||||
|
|
Loading…
Reference in New Issue