UNPKG

@iexec/iapp

Version:

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

25 lines (23 loc) 540 B
import { JsonRpcProvider } from 'ethers'; import { AbstractSigner } from 'ethers'; import { IExec } from 'iexec'; import { useExperimentalNetworks } from './featureFlags.js'; export function getIExecDebug({ signer, rpcHostUrl, smsDebugUrl, }: { signer: AbstractSigner; rpcHostUrl: string; smsDebugUrl: string; }): IExec { return new IExec( { ethProvider: signer.connect(new JsonRpcProvider(rpcHostUrl)), }, { smsURL: smsDebugUrl, allowExperimentalNetworks: useExperimentalNetworks, } ); }