@sats-connect/core 0.4.0 → 0.4.1

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.js CHANGED
@@ -1804,15 +1804,14 @@ var UnisatAdapter = class extends SatsConnectAdapter {
1804
1804
  autoFinalized: broadcast,
1805
1805
  toSignInputs: convertSignInputsToInputType(signInputs)
1806
1806
  });
1807
+ const signedPsbtBase64 = import_buffer.Buffer.from(signedPsbt, "hex").toString("base64");
1808
+ let txid;
1807
1809
  if (broadcast) {
1808
- const txid = await window.unisat.pushPsbt(psbtHex);
1809
- return {
1810
- psbt: signedPsbt,
1811
- txid
1812
- };
1810
+ txid = await window.unisat.pushPsbt(signedPsbt);
1813
1811
  }
1814
1812
  return {
1815
- psbt: psbtHex
1813
+ psbt: signedPsbtBase64,
1814
+ txid
1816
1815
  };
1817
1816
  }
1818
1817
  requestInternal = async (method, params) => {
package/dist/index.mjs CHANGED
@@ -1609,15 +1609,14 @@ var UnisatAdapter = class extends SatsConnectAdapter {
1609
1609
  autoFinalized: broadcast,
1610
1610
  toSignInputs: convertSignInputsToInputType(signInputs)
1611
1611
  });
1612
+ const signedPsbtBase64 = Buffer.from(signedPsbt, "hex").toString("base64");
1613
+ let txid;
1612
1614
  if (broadcast) {
1613
- const txid = await window.unisat.pushPsbt(psbtHex);
1614
- return {
1615
- psbt: signedPsbt,
1616
- txid
1617
- };
1615
+ txid = await window.unisat.pushPsbt(signedPsbt);
1618
1616
  }
1619
1617
  return {
1620
- psbt: psbtHex
1618
+ psbt: signedPsbtBase64,
1619
+ txid
1621
1620
  };
1622
1621
  }
1623
1622
  requestInternal = async (method, params) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sats-connect/core",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "main": "dist/index.mjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.mts",