From df950c67d0a278cb2ceed0d8eec0ce9292afc6d2 Mon Sep 17 00:00:00 2001 From: benesjan Date: Tue, 9 Jul 2024 12:59:04 +0000 Subject: [PATCH] fixes --- boxes/boxes/react/package.json | 2 +- boxes/boxes/react/src/contracts/src/main.nr | 10 +++++----- boxes/boxes/vanilla/package.json | 2 +- boxes/boxes/vanilla/src/contracts/src/main.nr | 10 +++++----- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/boxes/boxes/react/package.json b/boxes/boxes/react/package.json index ddf98a6fef89..8e574163eb54 100644 --- a/boxes/boxes/react/package.json +++ b/boxes/boxes/react/package.json @@ -6,7 +6,7 @@ "type": "module", "main": "./dist/index.js", "scripts": { - "compile": "cd src/contracts && ${AZTEC_NARGO:-aztec-nargo} compile --use-legacy --silence-warnings", + "compile": "cd src/contracts && ${AZTEC_NARGO:-aztec-nargo} compile --silence-warnings", "codegen": "${AZTEC_BUILDER:-aztec-builder} codegen src/contracts/target -o artifacts", "clean": "rm -rf ./dist .tsbuildinfo ./artifacts ./src/contracts/target", "prep": "yarn clean && yarn compile && yarn codegen", diff --git a/boxes/boxes/react/src/contracts/src/main.nr b/boxes/boxes/react/src/contracts/src/main.nr index 16137655fff1..953603538ef1 100644 --- a/boxes/boxes/react/src/contracts/src/main.nr +++ b/boxes/boxes/react/src/contracts/src/main.nr @@ -1,6 +1,6 @@ contract BoxReact { use dep::aztec::prelude::{AztecAddress, PrivateMutable, Map, NoteInterface, NoteHeader}; - use dep::aztec::protocol_types::embedded_curve_point::EmbeddedCurvePoint; + use dep::aztec::protocol_types::point::Point; use dep::aztec::encrypted_logs::encrypted_note_emission::encode_and_encrypt_note_with_keys; use dep::value_note::value_note::{ValueNote, VALUE_NOTE_LEN}; @@ -15,8 +15,8 @@ contract BoxReact { number: Field, owner: AztecAddress, owner_npk_m_hash: Field, - owner_ovpk_m: EmbeddedCurvePoint, - owner_ivpk_m: EmbeddedCurvePoint + owner_ovpk_m: Point, + owner_ivpk_m: Point ) { let numbers = storage.numbers; let mut new_number = ValueNote::new(number, owner_npk_m_hash); @@ -28,8 +28,8 @@ contract BoxReact { number: Field, owner: AztecAddress, owner_npk_m_hash: Field, - owner_ovpk_m: EmbeddedCurvePoint, - owner_ivpk_m: EmbeddedCurvePoint + owner_ovpk_m: Point, + owner_ivpk_m: Point ) { let numbers = storage.numbers; let mut new_number = ValueNote::new(number, owner_npk_m_hash); diff --git a/boxes/boxes/vanilla/package.json b/boxes/boxes/vanilla/package.json index f590df2b6d39..045d0e976fa6 100644 --- a/boxes/boxes/vanilla/package.json +++ b/boxes/boxes/vanilla/package.json @@ -5,7 +5,7 @@ "version": "0.1.0", "type": "module", "scripts": { - "compile": "cd src/contracts && ${AZTEC_NARGO:-aztec-nargo} compile --use-legacy --silence-warnings", + "compile": "cd src/contracts && ${AZTEC_NARGO:-aztec-nargo} compile --silence-warnings", "codegen": "${AZTEC_BUILDER:-aztec-builder} codegen src/contracts/target -o artifacts", "clean": "rm -rf ./dest .tsbuildinfo ./artifacts ./src/contracts/target", "prep": "yarn clean && yarn compile && yarn codegen && tsc -b", diff --git a/boxes/boxes/vanilla/src/contracts/src/main.nr b/boxes/boxes/vanilla/src/contracts/src/main.nr index ac9bc90479ac..6a6016ec63ef 100644 --- a/boxes/boxes/vanilla/src/contracts/src/main.nr +++ b/boxes/boxes/vanilla/src/contracts/src/main.nr @@ -1,6 +1,6 @@ contract Vanilla { use dep::aztec::prelude::{AztecAddress, PrivateMutable, Map, NoteInterface, NoteHeader}; - use dep::aztec::protocol_types::embedded_curve_point::EmbeddedCurvePoint; + use dep::aztec::protocol_types::point::Point; use dep::aztec::encrypted_logs::encrypted_note_emission::encode_and_encrypt_note_with_keys; use dep::value_note::value_note::{ValueNote, VALUE_NOTE_LEN}; @@ -15,8 +15,8 @@ contract Vanilla { number: Field, owner: AztecAddress, owner_npk_m_hash: Field, - owner_ovpk_m: EmbeddedCurvePoint, - owner_ivpk_m: EmbeddedCurvePoint + owner_ovpk_m: Point, + owner_ivpk_m: Point ) { let numbers = storage.numbers; let mut new_number = ValueNote::new(number, owner_npk_m_hash); @@ -28,8 +28,8 @@ contract Vanilla { number: Field, owner: AztecAddress, owner_npk_m_hash: Field, - owner_ovpk_m: EmbeddedCurvePoint, - owner_ivpk_m: EmbeddedCurvePoint + owner_ovpk_m: Point, + owner_ivpk_m: Point ) { let numbers = storage.numbers; let mut new_number = ValueNote::new(number, owner_npk_m_hash);