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 +4 -3
- package/dist/index.js.map +2 -2
- package/esm/index.js +4 -3
- package/esm/index.js.map +2 -2
- package/package.json +1 -1
package/esm/index.js
CHANGED
@@ -2677,7 +2677,8 @@ var BTCWallet = (_0) => __async(void 0, [_0], function* ({
|
|
2677
2677
|
baseDecode(header.hash)
|
2678
2678
|
);
|
2679
2679
|
const txBytes = encodeTransaction(_transaction);
|
2680
|
-
const txHex =
|
2680
|
+
const txHex = Array.from(txBytes, (byte) => ("0" + (byte & 255).toString(16)).slice(-2)).join("");
|
2681
|
+
;
|
2681
2682
|
const hash = bs58.encode(new Uint8Array(sha256.array(txBytes)));
|
2682
2683
|
return { txBytes, txHex, hash };
|
2683
2684
|
});
|
@@ -2690,7 +2691,7 @@ var BTCWallet = (_0) => __async(void 0, [_0], function* ({
|
|
2690
2691
|
const intention = {
|
2691
2692
|
chain_id: "397",
|
2692
2693
|
csna: accountId,
|
2693
|
-
near_transactions: newTransactions.map((t) =>
|
2694
|
+
near_transactions: newTransactions.map((t) => t.txHex),
|
2694
2695
|
gas_token: token,
|
2695
2696
|
gas_limit: "3000",
|
2696
2697
|
nonce: Number(nonce).toString()
|
@@ -2833,7 +2834,7 @@ function pollTransactionStatuses(network, hashes) {
|
|
2833
2834
|
|
2834
2835
|
// src/index.ts
|
2835
2836
|
var getVersion = () => {
|
2836
|
-
return "0.0.
|
2837
|
+
return "0.0.6";
|
2837
2838
|
};
|
2838
2839
|
if (typeof window !== "undefined") {
|
2839
2840
|
window.__PARTICLE_BTC_CONNECT_VERSION = getVersion();
|