Update code gen for Mapping::set

This commit is contained in:
Pranav Gaddamadugu 2023-04-15 15:11:56 -07:00
parent 4771cb1e3c
commit 76693533b0

View File

@ -318,8 +318,7 @@ impl<'a> CodeGenerator<'a> {
(destination_register, instruction)
}
sym::set => {
// TODO: Fix when `put` is renamed to `set` in snarkVM
let mut instruction = " put".to_string();
let mut instruction = " set".to_string();
// Write the value, mapping name, and the key.
writeln!(instruction, " {} into {}[{}];", arguments[2], arguments[0], arguments[1])
.expect("failed to write to string");