From a01f80605322ba392642ccc024a4d24009aa870b Mon Sep 17 00:00:00 2001 From: Joshua C Date: Wed, 4 Sep 2024 15:49:59 +0800 Subject: [PATCH] fix(sdk): return p2wsh (#126) fix to return p2wsh --- packages/sdk/src/utils/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sdk/src/utils/index.ts b/packages/sdk/src/utils/index.ts index dc67631e..46a2f518 100644 --- a/packages/sdk/src/utils/index.ts +++ b/packages/sdk/src/utils/index.ts @@ -247,7 +247,7 @@ export function getScriptType(script: Buffer, network: Network): GetScriptTypeRe if (p2wsh.payload) { return { format: addressTypeToName["p2wsh"], - ...p2wpkh + ...p2wsh } }