From a61cd88380de0448eedb52abce8658dbf5688e6e Mon Sep 17 00:00:00 2001 From: MirandaWood Date: Tue, 23 Apr 2024 11:56:48 +0000 Subject: [PATCH] fix: args + selector in deploy.nr --- noir-projects/aztec-nr/aztec/src/deploy.nr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/noir-projects/aztec-nr/aztec/src/deploy.nr b/noir-projects/aztec-nr/aztec/src/deploy.nr index 53fda2bee03..9b138875d5b 100644 --- a/noir-projects/aztec-nr/aztec/src/deploy.nr +++ b/noir-projects/aztec-nr/aztec/src/deploy.nr @@ -16,7 +16,7 @@ pub fn deploy_contract(context: &mut PrivateContext, target: AztecAddress) { // Adapted from noir-contracts/contracts/contract_instance_deployer_contract/src/interface/ContractInstanceDeployer.nr // That file was autogenerated running the following command from noir-projects/noir-contracts: // ../../yarn-project/node_modules/.bin/aztec-cli codegen target/contract_instance_deployer_contract-ContractInstanceDeployer.json --nr -o ./contracts/contract_instance_deployer_contract/src/interface - let mut serialized_args = [0; 6]; + let mut serialized_args = [0; 5]; serialized_args[0] = instance.salt; serialized_args[1] = instance.contract_class_id.to_field(); serialized_args[2] = instance.initialization_hash; @@ -25,7 +25,7 @@ pub fn deploy_contract(context: &mut PrivateContext, target: AztecAddress) { let _call_result = context.call_private_function( AztecAddress::from_field(DEPLOYER_CONTRACT_ADDRESS), - FunctionSelector::from_field(0x883355ab), + FunctionSelector::from_field(0x7ebd3690), serialized_args ); }