Skip to content

Commit

Permalink
chore: remove reference to result directory
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench committed Sep 15, 2023
1 parent ac801ee commit f2cf2ea
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tooling/noirc_abi_wasm/test/browser/abi_encode.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import { expect } from "@esm-bundle/chai";
import initNoirAbi, { abiEncode, abiDecode, WitnessMap } from "../../../../result";
import initNoirAbi, {
abiEncode,
abiDecode,
WitnessMap,
} from "@noir-lang/noir_wasm";
import { DecodedInputs } from "../types";

beforeEach(async () => {
Expand All @@ -12,7 +16,6 @@ it("recovers original inputs when abi encoding and decoding", async () => {
const initial_witness: WitnessMap = abiEncode(abi, inputs, null);
const decoded_inputs: DecodedInputs = abiDecode(abi, initial_witness);


expect(BigInt(decoded_inputs.inputs.foo)).to.be.equal(BigInt(inputs.foo));
expect(BigInt(decoded_inputs.inputs.bar[0])).to.be.equal(
BigInt(inputs.bar[0])
Expand All @@ -21,4 +24,4 @@ it("recovers original inputs when abi encoding and decoding", async () => {
BigInt(inputs.bar[1])
);
expect(decoded_inputs.return_value).to.be.null;
});
});

0 comments on commit f2cf2ea

Please sign in to comment.