Skip to content

Commit

Permalink
💚update labels for ETH
Browse files Browse the repository at this point in the history
  • Loading branch information
VicAlbr committed Jul 25, 2024
1 parent 7b41333 commit 052bdba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions apps/ledger-live-desktop/tests/enum/Currency.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,28 +38,28 @@ export class Currency {
"Ethereum",
"ETH",
"Ethereum",
[DeviceLabels.AMOUT, DeviceLabels.ADDRESS, DeviceLabels.ACCEPT, DeviceLabels.REJECT],
[DeviceLabels.AMOUT, DeviceLabels.TO, DeviceLabels.ACCEPT, DeviceLabels.REJECT],
[DeviceLabels.ADDRESS, DeviceLabels.APPROVE, DeviceLabels.REJECT],
);
static readonly tETH = new Currency(
"Ethereum Holesky",
"𝚝ETH",
"Ethereum Holesky",
[DeviceLabels.AMOUT, DeviceLabels.ADDRESS, DeviceLabels.ACCEPT, DeviceLabels.REJECT],
[DeviceLabels.AMOUT, DeviceLabels.TO, DeviceLabels.ACCEPT, DeviceLabels.REJECT],
[DeviceLabels.ADDRESS, DeviceLabels.APPROVE, DeviceLabels.REJECT],
);
static readonly sepETH = new Currency(
"Ethereum Sepolia",
"𝚝ETH",
"Ethereum Sepolia",
[DeviceLabels.AMOUT, DeviceLabels.ADDRESS, DeviceLabels.ACCEPT, DeviceLabels.REJECT],
[DeviceLabels.AMOUT, DeviceLabels.TO, DeviceLabels.ACCEPT, DeviceLabels.REJECT],
[DeviceLabels.ADDRESS, DeviceLabels.APPROVE, DeviceLabels.REJECT],
);
static readonly ETC = new Currency(
"Ethereum Classic",
"ETC",
"Ethereum Classic",
[DeviceLabels.AMOUT, DeviceLabels.ADDRESS, DeviceLabels.ACCEPT, DeviceLabels.REJECT],
[DeviceLabels.AMOUT, DeviceLabels.TO, DeviceLabels.ACCEPT, DeviceLabels.REJECT],
[DeviceLabels.ADDRESS, DeviceLabels.APPROVE, DeviceLabels.REJECT],
);
static readonly SOL = new Currency(
Expand Down
4 changes: 2 additions & 2 deletions apps/ledger-live-desktop/tests/page/speculos.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ export class SpeculosPage extends AppPage {

@step("Verify transaction info on device")
async expectValidTxInfo(tx: Transaction) {
const amountScreen = await pressRightUntil(DeviceLabels.AMOUT);
const amountScreen = await pressRightUntil(tx.accountToDebit.currency.sendPattern[0]);
expect(verifyAmount(tx.amount, amountScreen)).toBe(true);
const addressScreen = await pressRightUntil(DeviceLabels.ADDRESS);
const addressScreen = await pressRightUntil(tx.accountToDebit.currency.sendPattern[1]);
expect(assertAddressesEquality(tx.recipient, addressScreen)).toBe(true);
await pressRightUntil(tx.accountToDebit.currency.sendPattern[2]);
await pressBoth();
Expand Down

0 comments on commit 052bdba

Please sign in to comment.