From 3c969cf830901521a298ad9286ff2ef121e46665 Mon Sep 17 00:00:00 2001 From: Howard Wu <9260812+howardwu@users.noreply.github.com> Date: Sat, 27 Jan 2024 13:39:59 -0800 Subject: [PATCH] Fix max_write error message --- synthesizer/program/src/finalize/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synthesizer/program/src/finalize/mod.rs b/synthesizer/program/src/finalize/mod.rs index 2a6f575109..556022ad66 100644 --- a/synthesizer/program/src/finalize/mod.rs +++ b/synthesizer/program/src/finalize/mod.rs @@ -113,7 +113,7 @@ impl> FinalizeCore { // Ensure the maximum number of commands has not been exceeded. ensure!(self.commands.len() < N::MAX_COMMANDS, "Cannot add more than {} commands", N::MAX_COMMANDS); // Ensure the number of write commands has not been exceeded. - ensure!(self.num_writes < N::MAX_WRITES, "Cannot add more than {} 'set' commands", N::MAX_WRITES); + ensure!(self.num_writes < N::MAX_WRITES, "Cannot add more than {} 'set' & 'remove' commands", N::MAX_WRITES); // Ensure the command is not a call instruction. ensure!(!command.is_call(), "Forbidden operation: Finalize cannot invoke a 'call'");