Skip to content

Commit

Permalink
Fix max_write error message
Browse files Browse the repository at this point in the history
  • Loading branch information
howardwu committed Jan 27, 2024
1 parent 6d396af commit 3c969cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synthesizer/program/src/finalize/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ impl<N: Network, Command: CommandTrait<N>> FinalizeCore<N, Command> {
// 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'");
Expand Down

0 comments on commit 3c969cf

Please sign in to comment.