We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
test_legacy_create_tx_default_sighash()
1 parent 2dcf7ad commit ba06877Copy full SHA for ba06877
wallet/tests/wallet.rs
@@ -1168,6 +1168,17 @@ fn test_create_tx_default_sighash() {
1168
assert_eq!(psbt.inputs[0].sighash_type, None);
1169
}
1170
1171
+#[test]
1172
+fn test_legacy_create_tx_default_sighash() {
1173
+ let (mut wallet, _) = get_funded_wallet_single(get_test_pkh());
1174
+ let addr = wallet.next_unused_address(KeychainKind::External);
1175
+ let mut builder = wallet.build_tx();
1176
+ builder.add_recipient(addr.script_pubkey(), Amount::from_sat(30_000));
1177
+ let psbt = builder.finish().unwrap();
1178
+
1179
+ assert_eq!(psbt.inputs[0].sighash_type, None);
1180
+}
1181
1182
#[test]
1183
fn test_create_tx_custom_sighash() {
1184
let (mut wallet, _) = get_funded_wallet_wpkh();
0 commit comments