Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ impl Account {
}
AccountAddressType::P2WPKH => {
if hash_type.as_u32() & SigHashType::All.as_u32() == 0 {
return Err(Error::Unsupported("can only sig all inputs for now"));
return Err(Error::Unsupported("can only sign all inputs for now"));
}
input.script_sig = Script::new();
let hasher =
Expand All @@ -698,7 +698,7 @@ impl Account {
}
AccountAddressType::P2SHWPKH => {
if hash_type.as_u32() & SigHashType::All.as_u32() == 0 {
return Err(Error::Unsupported("can only sig all inputs for now"));
return Err(Error::Unsupported("can only sign all inputs for now"));
}
input.script_sig = Builder::new()
.push_slice(
Expand Down Expand Up @@ -730,7 +730,7 @@ impl Account {
}
AccountAddressType::P2WSH(_) => {
if hash_type.as_u32() & SigHashType::All.as_u32() == 0 {
return Err(Error::Unsupported("can only sig all inputs for now"));
return Err(Error::Unsupported("can only sign all inputs for now"));
}
input.script_sig = Script::new();
let hasher =
Expand Down