narodnik 5 years ago
parent
commit
b659e1b2d7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/vm.rs

+ 2 - 2
src/vm.rs

@@ -43,10 +43,10 @@ impl ZKVirtualMachine {
         for (alloc_type, index) in &self.alloc {
             match alloc_type {
                 AllocType::Private => {
-                    let scalar = self.aux[*index].clone();
-                    publics.push(scalar);
                 }
                 AllocType::Public => {
+                    let scalar = self.aux[*index].clone();
+                    publics.push(scalar);
                 }
             }
         }