Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Jun 18, 2024
1 parent 98e9245 commit c7c7b3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yarn-project/types/src/abi/contract_artifact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,8 @@ function getNoteTypes(input: NoirCompiledContract) {

return notes.reduce((acc: Record<string, ContractNote>, note) => {
const name = note.fields[1].value as string;
const id = new Fr(BigInt(note.fields[0].value));
// Note id is encoded as a hex string
const id = Fr.fromString(note.fields[0].value);
acc[name] = {
id,
typ: name,
Expand Down

0 comments on commit c7c7b3c

Please sign in to comment.