From a5614bd39cd9ec0778cc55624e21520703e956bd Mon Sep 17 00:00:00 2001 From: GoodDaisy <90915921+GoodDaisy@users.noreply.github.com> Date: Mon, 8 Jan 2024 17:33:34 +0800 Subject: [PATCH 1/3] Fix typo --- src/psbt/bip371.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { From a9d5451cdeda4e6597b20d9c908ac9eb1a7aa84f Mon Sep 17 00:00:00 2001 From: Jonathan Underwood Date: Thu, 27 Jun 2024 23:28:10 +0900 Subject: [PATCH 2/3] Fix typo --- ts_src/psbt/bip371.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.'); } } From e212f0fd26471f6b39f944c05349d62b8c392980 Mon Sep 17 00:00:00 2001 From: Jonathan Underwood Date: Thu, 27 Jun 2024 23:31:59 +0900 Subject: [PATCH 3/3] Fix typo --- test/fixtures/psbt.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",