From f3228d4f2aef2aabdbcca243d51007ffd9ecedbc Mon Sep 17 00:00:00 2001 From: benesjan Date: Tue, 1 Oct 2024 13:38:09 +0000 Subject: [PATCH] fix --- yarn-project/types/src/abi/contract_artifact.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yarn-project/types/src/abi/contract_artifact.ts b/yarn-project/types/src/abi/contract_artifact.ts index 84eb0f140990..506beddd8a8d 100644 --- a/yarn-project/types/src/abi/contract_artifact.ts +++ b/yarn-project/types/src/abi/contract_artifact.ts @@ -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, }; });