fix: beacon url is not used on the client side

This commit is contained in:
Derrick Hammer 2023-07-11 04:08:46 -04:00
parent 8244f766ae
commit f353b3e102
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
2 changed files with 0 additions and 3 deletions

View File

@ -16,7 +16,6 @@ import { equalBytes } from "@noble/curves/abstract/utils.js";
interface Config extends BaseClientOptions { interface Config extends BaseClientOptions {
prover: IClientProver; prover: IClientProver;
beaconUrl: string;
provider: IVerifyingProviderConstructor; provider: IVerifyingProviderConstructor;
rpcHandler: Function; rpcHandler: Function;
} }

View File

@ -3,13 +3,11 @@ import Prover, { IClientProver, ProverRequestCallback } from "./prover.js";
import VerifyingProvider from "./verifyingProvider.js"; import VerifyingProvider from "./verifyingProvider.js";
function createDefaultClient( function createDefaultClient(
beaconUrl: string,
proverHandler: ProverRequestCallback, proverHandler: ProverRequestCallback,
rpcHandler: Function, rpcHandler: Function,
): Client { ): Client {
return new Client({ return new Client({
prover: new Prover(proverHandler), prover: new Prover(proverHandler),
beaconUrl,
provider: VerifyingProvider, provider: VerifyingProvider,
rpcHandler, rpcHandler,
}); });