@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
12 lines • 594 B
JavaScript
import expect from "expect";
import { pressBoth, pressUntilTextFound, containsSubstringInEvent } from "../speculos";
import { DeviceLabels } from "../enum/DeviceLabels";
export async function sendAlgorand(tx) {
const events = await pressUntilTextFound(DeviceLabels.CAPS_APPROVE);
const isAmountCorrect = containsSubstringInEvent(tx.amount, events);
expect(isAmountCorrect).toBeTruthy();
const isAddressCorrect = containsSubstringInEvent(tx.accountToCredit.address, events);
expect(isAddressCorrect).toBeTruthy();
await pressBoth();
}
//# sourceMappingURL=algorand.js.map