fix(typo): examples/ecdsa-psbt.rs

"Creater" is a typo, it should be "Creator" role.
This commit is contained in:
Jose Storopoli 2024-05-01 17:56:11 -03:00 committed by GitHub
parent ad212da930
commit f0093c0f1c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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)?;