import { pressBoth, pressUntilTextFound, waitFor, containsSubstringInEvent } from "../speculos";
import { DeviceLabels } from "../enum/DeviceLabels";
import expect from "expect";
export async function delegateCelo(tx) {
    await waitFor(DeviceLabels.REVIEW_TRANSACTION);
    const events = await pressUntilTextFound(DeviceLabels.ACCEPT);
    const isAmountCorrect = containsSubstringInEvent(tx.amount, events);
    expect(isAmountCorrect).toBeTruthy();
    await pressBoth();
}
//# sourceMappingURL=celo.js.map