@txnlab/use-wallet 3.1.3 → 3.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +11 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5630,7 +5630,17 @@ var WalletConnect = class extends BaseWallet {
|
|
|
5630
5630
|
});
|
|
5631
5631
|
const signedTxns = signTxnsResult.reduce((acc, value) => {
|
|
5632
5632
|
if (value) {
|
|
5633
|
-
|
|
5633
|
+
let signedTxn;
|
|
5634
|
+
if (typeof value === "string") {
|
|
5635
|
+
signedTxn = base64ToByteArray(value);
|
|
5636
|
+
} else if (value instanceof Uint8Array) {
|
|
5637
|
+
signedTxn = value;
|
|
5638
|
+
} else if (Array.isArray(value)) {
|
|
5639
|
+
signedTxn = new Uint8Array(value);
|
|
5640
|
+
} else {
|
|
5641
|
+
console.warn(`[${this.metadata.name}] Unexpected type in signTxnsResult`, value);
|
|
5642
|
+
signedTxn = new Uint8Array();
|
|
5643
|
+
}
|
|
5634
5644
|
acc.push(signedTxn);
|
|
5635
5645
|
}
|
|
5636
5646
|
return acc;
|