We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c4e1ac commit 41e282bCopy full SHA for 41e282b
.changeset/long-drinks-search.md
@@ -0,0 +1,5 @@
1
+---
2
+"@gobob/sats-wagmi": patch
3
4
+
5
+fix: signing psbt with taproot address with okx wallet
packages/sats-wagmi/src/connectors/okx.ts
@@ -153,11 +153,14 @@ class OKXConnector extends SatsConnector {
153
}
154
155
156
+ const addressType = this.getAddressType(this.paymentAddress!);
157
158
const toSignInputs = inputs.map((index) => {
159
return {
160
index,
- publicKey,
- disableTweakSigner: this.getAddressType(this.paymentAddress!) !== AddressType.p2tr
161
+ ...(addressType === AddressType.p2tr
162
+ ? { address: this.paymentAddress, disableTweakSigner: false }
163
+ : { publicKey: publicKey, disableTweakSigner: true })
164
};
165
});
166
0 commit comments