diff --git a/framework/base/src/types/interaction/tx_data/deploy_call.rs b/framework/base/src/types/interaction/tx_data/deploy_call.rs index a742901736..74b40d3828 100644 --- a/framework/base/src/types/interaction/tx_data/deploy_call.rs +++ b/framework/base/src/types/interaction/tx_data/deploy_call.rs @@ -22,7 +22,7 @@ where fn default() -> DeployCall { DeployCall { code_source: (), - code_metadata: CodeMetadata::DEFAULT, + code_metadata: CodeMetadata::UPGRADEABLE, arg_buffer: ManagedArgBuffer::new(), } } diff --git a/framework/scenario/src/scenario/tx_to_step/tx_to_step_deploy.rs b/framework/scenario/src/scenario/tx_to_step/tx_to_step_deploy.rs index 1c7532e27a..75e4555152 100644 --- a/framework/scenario/src/scenario/tx_to_step/tx_to_step_deploy.rs +++ b/framework/scenario/src/scenario/tx_to_step/tx_to_step_deploy.rs @@ -50,6 +50,7 @@ where let mut step = ScDeployStep::new() .from(address_annotated(env, &from)) .code(code_annotated(env, data.code_source)); + step.tx.code_metadata = data.code_metadata; for arg in data.arg_buffer.iter_buffers() { step.tx.arguments.push(arg.to_vec().into()); }