@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
9 lines • 421 B
JavaScript
import { pressBoth, containsSubstringInEvent, getDelegateEvents } from "../speculos";
import expect from "expect";
export async function delegateCelo(delegatingAccount) {
const events = await getDelegateEvents(delegatingAccount);
const isAmountCorrect = containsSubstringInEvent(delegatingAccount.amount, events);
expect(isAmountCorrect).toBeTruthy();
await pressBoth();
}
//# sourceMappingURL=celo.js.map