Skip to content

Commit a7054db

Browse files
committed
update Zeto_NfAnonNullifier.ts deployment step to add missing solidity library
Signed-off-by: Jim Zhang <jim.zhang@kaleido.io>
1 parent 4907cb9 commit a7054db

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

solidity/ignition/modules/zeto_nf_anon_nullifier.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ const LockVerifierModule = buildModule(
3737
);
3838

3939
export default buildModule("Zeto_NfAnonNullifier", (m) => {
40-
const { smtLib, poseidon3 } = m.useModule(SmtLibModule);
40+
const { smtLib, poseidon2, poseidon3 } = m.useModule(SmtLibModule);
4141
const { verifier } = m.useModule(VerifierModule);
4242
const { verifier: lockVerifier } = m.useModule(LockVerifierModule);
4343

44-
return { verifier, lockVerifier, smtLib, poseidon3 };
44+
return { verifier, lockVerifier, smtLib, poseidon2, poseidon3 };
4545
});

solidity/scripts/tokens/Zeto_NfAnonNullifier.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import zetoModule from "../../ignition/modules/zeto_nf_anon_nullifier";
2020
export async function deployDependencies() {
2121
const [deployer] = await ethers.getSigners();
2222

23-
const { verifier, lockVerifier, smtLib, poseidon3 } =
23+
const { verifier, lockVerifier, smtLib, poseidon2, poseidon3 } =
2424
await ignition.deploy(zetoModule);
2525
return {
2626
deployer,
@@ -42,6 +42,7 @@ export async function deployDependencies() {
4242
],
4343
libraries: {
4444
SmtLib: smtLib.target,
45+
PoseidonUnit2L: poseidon2.target,
4546
PoseidonUnit3L: poseidon3.target,
4647
},
4748
};

0 commit comments

Comments
 (0)