UNPKG

@ledgerhq/live-common

Version:
10 lines 501 B
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