From 2f5c27ce5d74d68b546357dad31b024398f7f05d Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 11 Jul 2023 03:54:45 -0400 Subject: [PATCH] fix: bls patch bugs in getImplementation --- patches/@chainsafe+bls+7.1.1.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/patches/@chainsafe+bls+7.1.1.patch b/patches/@chainsafe+bls+7.1.1.patch index 93926fd..9ac65a4 100644 --- a/patches/@chainsafe+bls+7.1.1.patch +++ b/patches/@chainsafe+bls+7.1.1.patch @@ -1,3 +1,16 @@ +diff --git a/node_modules/@chainsafe/bls/lib/getImplementation.js b/node_modules/@chainsafe/bls/lib/getImplementation.js +index 9137cd4..ba8de8a 100644 +--- a/node_modules/@chainsafe/bls/lib/getImplementation.js ++++ b/node_modules/@chainsafe/bls/lib/getImplementation.js +@@ -3,7 +3,7 @@ const isNode = Object.prototype.toString.call(typeof process !== "undefined" ? p + export async function getImplementation(impl = "herumi") { + switch (impl) { + case "herumi": { +- return (await import("./herumi/index.js")).bls; ++ return (await import("./herumi/index.js")).bls(); + } + case "blst-native": + // Lazy import native bindings to prevent automatically importing binding.node files diff --git a/node_modules/@chainsafe/bls/lib/herumi/index.js b/node_modules/@chainsafe/bls/lib/herumi/index.js index 4ed8fdd..f979984 100644 --- a/node_modules/@chainsafe/bls/lib/herumi/index.js