diff --git a/src/families/cosmos/api/Cosmos.ts b/src/families/cosmos/api/Cosmos.ts index a307d724e0..28248d75ec 100644 --- a/src/families/cosmos/api/Cosmos.ts +++ b/src/families/cosmos/api/Cosmos.ts @@ -226,8 +226,7 @@ export const broadcast = async ({ }): Promise => { const { data } = await network({ method: "POST", - // url: `${defaultEndpoint}/cosmos/tx/v1beta1/txs`, // FIXME LL-9159 - url: `https://node.atomscan.com/cosmos/tx/v1beta1/txs`, + url: `${defaultEndpoint}/cosmos/tx/v1beta1/txs`, data: { tx_bytes: Array.from(Uint8Array.from(Buffer.from(signature, "hex"))), mode: "BROADCAST_MODE_SYNC", @@ -265,8 +264,7 @@ export const simulate = async (tx_bytes: Array): Promise => { try { const { data } = await network({ method: "POST", - // url: `${defaultEndpoint}/cosmos/tx/v1beta1/simulate`, // FIXME LL-9159 - url: `https://node.atomscan.com/cosmos/tx/v1beta1/simulate`, + url: `${defaultEndpoint}/cosmos/tx/v1beta1/simulate`, data: { tx_bytes: tx_bytes, }, diff --git a/src/families/cosmos/js-prepareTransaction.ts b/src/families/cosmos/js-prepareTransaction.ts index 319d6a2b4f..100c1be426 100644 --- a/src/families/cosmos/js-prepareTransaction.ts +++ b/src/families/cosmos/js-prepareTransaction.ts @@ -50,6 +50,7 @@ const prepareTransaction = async ( typeUrl: "/cosmos.tx.v1beta1.TxBody", value: { messages: unsignedPayload, + memo: transaction.memo || patch.memo || "", }, }; diff --git a/src/families/cosmos/js-signOperation.ts b/src/families/cosmos/js-signOperation.ts index 1d1461d17f..678b57c7ff 100644 --- a/src/families/cosmos/js-signOperation.ts +++ b/src/families/cosmos/js-signOperation.ts @@ -23,7 +23,6 @@ import { } from "cosmjs-types/cosmos/staking/v1beta1/tx"; import { MsgWithdrawDelegatorReward } from "cosmjs-types/cosmos/distribution/v1beta1/tx"; import BigNumber from "bignumber.js"; -import { log } from "@ledgerhq/logs"; const aminoTypes = new AminoTypes({ prefix: "cosmos" }); @@ -69,12 +68,8 @@ const signOperation = ({ let pubkey; - log("engine", "look for pubkey for address", account.freshAddress); - log("engine", "path", account.freshAddressPath); - accounts.forEach((a) => { if (a.address == account.freshAddress) { - log("engine", "found pubkey with same address"); pubkey = encodePubkey({ type: "tendermint/PubKeySecp256k1", value: Buffer.from(a.pubkey).toString("base64"), @@ -113,6 +108,7 @@ const signOperation = ({ typeUrl: "/cosmos.tx.v1beta1.TxBody", value: { messages: msgs.map((msg) => aminoTypes.fromAmino(msg)), + memo: transaction.memo || "", }, };