diff --git a/src/psbt/bip371.js b/src/psbt/bip371.js index 2b53171e0..52ab6ab43 100644 --- a/src/psbt/bip371.js +++ b/src/psbt/bip371.js @@ -97,7 +97,7 @@ function checkTaprootScriptPubkey(outputData, newOutputData) { const { script: scriptPubkey } = outputData; const script = getTaprootScripPubkey(tapInternalKey, tapTree); if (scriptPubkey && !scriptPubkey.equals(script)) - throw new Error('Error adding output. Script or address missmatch.'); + throw new Error('Error adding output. Script or address mismatch.'); } } function getTaprootScripPubkey(tapInternalKey, tapTree) { diff --git a/test/fixtures/psbt.json b/test/fixtures/psbt.json index ce8988fa3..33c599fec 100644 --- a/test/fixtures/psbt.json +++ b/test/fixtures/psbt.json @@ -615,7 +615,7 @@ "address": "bc1p3efq8ujsj0qr5xvms7mv89p8cz0crqdtuxe9ms6grqgxc9sgsntslthf6w", "value": 410000 }, - "exception": "Error adding output. Script or address missmatch." + "exception": "Error adding output. Script or address mismatch." }, { "description": "Adds taproot output with both taproot and non-taproot fields", diff --git a/ts_src/psbt/bip371.ts b/ts_src/psbt/bip371.ts index 752265b0b..667bd1523 100644 --- a/ts_src/psbt/bip371.ts +++ b/ts_src/psbt/bip371.ts @@ -129,7 +129,7 @@ function checkTaprootScriptPubkey( const { script: scriptPubkey } = outputData as any; const script = getTaprootScripPubkey(tapInternalKey, tapTree); if (scriptPubkey && !scriptPubkey.equals(script)) - throw new Error('Error adding output. Script or address missmatch.'); + throw new Error('Error adding output. Script or address mismatch.'); } }