Add a blockConfirmation that handles a transaction confirmation from an event
Opened this issue · 0 comments
molekilla commented
Add
const logs = await blockConfirmationUntilTransaction(contract.logEvent, filterOptions)
Returns a Promise of logs
This saves the following code
const logs = await questContract.logSetQuestOutcome(filterOptions);
const blockConfirmation = blockConfirmationUntil(questOutcomeResult.txid);
await blockConfirmation.toPromise();