diff --git a/src/poseidon_wasm.js b/src/poseidon_wasm.js index c7048c0..b104a67 100644 --- a/src/poseidon_wasm.js +++ b/src/poseidon_wasm.js @@ -22,7 +22,7 @@ export async function buildPoseidon() { } else { buff = arr; n = buff.byteLength / 32; - if (n*32 != buff.byteLength) throw new Error("Invalid iput buff size"); + if (n*32 != buff.byteLength) throw new Error("Invalid input buff size"); } bn128.tm.setBuff(pIn, buff); diff --git a/test/mimc7contract.js b/test/mimc7contract.js index d5cc5bf..a771b2a 100644 --- a/test/mimc7contract.js +++ b/test/mimc7contract.js @@ -41,7 +41,7 @@ describe("MiMC Smart contract test", function () { }); - it("Shold calculate the mimc correctly", async () => { + it("Should calculate the mimc correctly", async () => { const res = await mimc["MiMCpe7"](1,2);