Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Oct 1, 2024
1 parent 6f76e38 commit f3228d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yarn-project/types/src/abi/contract_artifact.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ function getNoteTypes(input: NoirCompiledContract) {
const fields = note.fields[2].fields.map(field => {
return {
name: field.name,
index: Number(field.value.fields[0].value.value), // TODO: is this hex or decimal?
index: parseInt(field.value.fields[0].value.value, 16),
nullable: field.value.fields[1].value.value,
};
});
Expand Down

0 comments on commit f3228d4

Please sign in to comment.