Skip to content

Commit 791fa01

Browse files
GoodDaisyjunderw
andauthored
Fix typos (#2032)
* Fix typo * Fix typo * Fix typo --------- Co-authored-by: Jonathan Underwood <jonathan.underwood4649@gmail.com>
1 parent e77c2f8 commit 791fa01

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/psbt/bip371.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function checkTaprootScriptPubkey(outputData, newOutputData) {
9797
const { script: scriptPubkey } = outputData;
9898
const script = getTaprootScripPubkey(tapInternalKey, tapTree);
9999
if (scriptPubkey && !scriptPubkey.equals(script))
100-
throw new Error('Error adding output. Script or address missmatch.');
100+
throw new Error('Error adding output. Script or address mismatch.');
101101
}
102102
}
103103
function getTaprootScripPubkey(tapInternalKey, tapTree) {

test/fixtures/psbt.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@
615615
"address": "bc1p3efq8ujsj0qr5xvms7mv89p8cz0crqdtuxe9ms6grqgxc9sgsntslthf6w",
616616
"value": 410000
617617
},
618-
"exception": "Error adding output. Script or address missmatch."
618+
"exception": "Error adding output. Script or address mismatch."
619619
},
620620
{
621621
"description": "Adds taproot output with both taproot and non-taproot fields",

ts_src/psbt/bip371.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function checkTaprootScriptPubkey(
129129
const { script: scriptPubkey } = outputData as any;
130130
const script = getTaprootScripPubkey(tapInternalKey, tapTree);
131131
if (scriptPubkey && !scriptPubkey.equals(script))
132-
throw new Error('Error adding output. Script or address missmatch.');
132+
throw new Error('Error adding output. Script or address mismatch.');
133133
}
134134
}
135135

0 commit comments

Comments
 (0)