UNPKG

@iexec/iapp

Version:

A CLI to guide you through the process of building an iExec iApp

19 lines (17 loc) 470 B
import type { Spinner } from './spinner.js'; import { askForAcknowledgment } from './askForAcknowledgment.js'; export async function warnBeforeTxFees({ spinner, chain, }: { spinner: Spinner; chain: string; }): Promise<void> { if (chain !== 'bellecour') { await askForAcknowledgment({ spinner, message: 'This method requires sending blockchain transactions, transaction fees will be applied. Would you like to continue?', }); } }