diff --git a/.changeset/fluffy-knives-retire.md b/.changeset/fluffy-knives-retire.md new file mode 100644 index 000000000000..567618e700ca --- /dev/null +++ b/.changeset/fluffy-knives-retire.md @@ -0,0 +1,5 @@ +--- +"@ledgerhq/live-common": patch +--- + +bugfix: celo transfer displaying amount and recipient address properly diff --git a/libs/ledger-live-common/src/families/celo/buildTransaction.ts b/libs/ledger-live-common/src/families/celo/buildTransaction.ts index 138674d41106..8071b5c7126f 100644 --- a/libs/ledger-live-common/src/families/celo/buildTransaction.ts +++ b/libs/ledger-live-common/src/families/celo/buildTransaction.ts @@ -107,13 +107,12 @@ const buildTransaction = async (account: CeloAccount, transaction: Transaction) }; } else { // Send - const celoToken = await kit.contracts.getGoldToken(); + celoTransaction = { from: account.freshAddress, - to: celoToken.address, - data: celoToken.transfer(transaction.recipient, value.toFixed()).txo.encodeABI(), + to: transaction.recipient, + value: value.toFixed(), }; - const gas = await kit.connection.estimateGasWithInflationFactor(celoTransaction); celoTransaction = {