btc-wallet 0.0.5 → 0.0.6

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
@@ -2714,7 +2714,8 @@ var BTCWallet = (_0) => __async(void 0, [_0], function* ({
2714
2714
  (0, import_utils5.baseDecode)(header.hash)
2715
2715
  );
2716
2716
  const txBytes = (0, import_transaction.encodeTransaction)(_transaction);
2717
- const txHex = toHex(txBytes.toString());
2717
+ const txHex = Array.from(txBytes, (byte) => ("0" + (byte & 255).toString(16)).slice(-2)).join("");
2718
+ ;
2718
2719
  const hash = import_bs58.default.encode(new Uint8Array(import_js_sha256.sha256.array(txBytes)));
2719
2720
  return { txBytes, txHex, hash };
2720
2721
  });
@@ -2727,7 +2728,7 @@ var BTCWallet = (_0) => __async(void 0, [_0], function* ({
2727
2728
  const intention = {
2728
2729
  chain_id: "397",
2729
2730
  csna: accountId,
2730
- near_transactions: newTransactions.map((t) => Array.from(t.txHex)),
2731
+ near_transactions: newTransactions.map((t) => t.txHex),
2731
2732
  gas_token: token,
2732
2733
  gas_limit: "3000",
2733
2734
  nonce: Number(nonce).toString()
@@ -2870,7 +2871,7 @@ function pollTransactionStatuses(network, hashes) {
2870
2871
 
2871
2872
  // src/index.ts
2872
2873
  var getVersion = () => {
2873
- return "0.0.5";
2874
+ return "0.0.6";
2874
2875
  };
2875
2876
  if (typeof window !== "undefined") {
2876
2877
  window.__PARTICLE_BTC_CONNECT_VERSION = getVersion();