Skip to content

Commit

Permalink
Merge pull request #2324 from AleoHQ/fix/error-comment
Browse files Browse the repository at this point in the history
Fix `max_write` error message
  • Loading branch information
howardwu authored Jan 27, 2024
2 parents 6d396af + 3c969cf commit 3f639c1
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 3f639c1

Please sign in to comment.