@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
10 lines • 501 B
JavaScript
import { containsSubstringInEvent, getDelegateEvents, pressBoth } from "../speculos";
import expect from "expect";
export async function delegateOsmosis(delegatingAccount) {
const events = await getDelegateEvents(delegatingAccount);
const amountInUosmo = (Number(delegatingAccount.amount) * 1_000_000).toString();
const isAmountCorrect = containsSubstringInEvent(amountInUosmo, events);
expect(isAmountCorrect).toBeTruthy();
await pressBoth();
}
//# sourceMappingURL=osmosis.js.map