Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function TxPool(provider, net = null, options = {}) {
const resolvedProvider = new ProviderResolver().resolve(provider, net);
return new TxPoolModule(
resolvedProvider,
new MethodFactory(Utils, formatters),
new Network(resolvedProvider, null, options),
Utils,
formatters,
options,
null
);
}
export function Admin(provider, net = null, options = {}) {
const resolvedProvider = new ProviderResolver().resolve(provider, net);
return new AdminModule(
resolvedProvider,
new MethodFactory(Utils, formatters),
new Network(resolvedProvider, null, options),
Utils,
formatters,
options,
null
);
}