fix: beacon url is not used on the client side
This commit is contained in:
parent
8244f766ae
commit
f353b3e102
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue