Skip to content

Commit

Permalink
bugfix: celo transfers content being passed to the device (#8840)
Browse files Browse the repository at this point in the history
* wip: fix display, break broadcast

* note on value breaking gas estimation

* sending creates a simple transaction object

* changeset

* missing from field
  • Loading branch information
Wozacosta authored Jan 9, 2025
1 parent 22ed228 commit ca55faf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/fluffy-knives-retire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ledgerhq/live-common": patch
---

bugfix: celo transfer displaying amount and recipient address properly
7 changes: 3 additions & 4 deletions libs/ledger-live-common/src/families/celo/buildTransaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit ca55faf

Please sign in to comment.