Import named export from blst

This commit is contained in:
dapplion 2020-11-29 16:59:16 +00:00
parent ef98683424
commit 2235e7be89
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ async function getImplementation(impl: Implementation = "herumi"): Promise<IBls>
throw Error("blst-native is only supported in NodeJS"); throw Error("blst-native is only supported in NodeJS");
} }
// eslint-disable-next-line @typescript-eslint/no-require-imports // eslint-disable-next-line @typescript-eslint/no-require-imports
return require("./blst"); return require("./blst").bls;
default: default:
throw new Error(`Unsupported implementation - ${impl}`); throw new Error(`Unsupported implementation - ${impl}`);