Set default value for implementation

This commit is contained in:
dapplion 2020-11-25 17:58:03 +00:00
parent 4ca6532171
commit 406419cac7
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ export type Implementation = "herumi" | "blst-native";
// TODO: Use a Proxy for example to throw an error if it's not initialized yet
export let bls: IBls;
async function getImplementation(impl: Implementation): Promise<IBls> {
async function getImplementation(impl: Implementation = "herumi"): Promise<IBls> {
switch (impl) {
case "herumi":
// eslint-disable-next-line @typescript-eslint/no-require-imports