Skip to content

Commit

Permalink
fix speculos-deviceActions test
Browse files Browse the repository at this point in the history
  • Loading branch information
Canestin committed Jan 16, 2025
1 parent bfca297 commit e70b7ac
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { deviceActionFlow, SpeculosButton } from "@ledgerhq/coin-framework/bot/specs";
import { DeviceAction } from "@ledgerhq/coin-framework/bot/types";
import { casperAccountHashFromPublicKey, getCLPublicKey } from "../bridge/bridgeHelpers/addresses";
import { getCLPublicKey } from "../bridge/bridgeHelpers/addresses";
import type { Transaction } from "../types";

export const acceptTransaction: DeviceAction<Transaction, any> = deviceActionFlow({
Expand Down Expand Up @@ -38,8 +38,7 @@ export const acceptTransaction: DeviceAction<Transaction, any> = deviceActionFlo
{
title: "Target",
button: SpeculosButton.RIGHT,
expectedValue: ({ transaction }) =>
casperAccountHashFromPublicKey(transaction.recipient, true),
expectedValue: ({ transaction }) => getCLPublicKey(transaction.recipient).toHex(true),
},
{
title: "Amount",
Expand Down

0 comments on commit e70b7ac

Please sign in to comment.