Ver Fonte

fix bug

narodnik há 5 anos atrás
pai
commit
b659e1b2d7
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      src/vm.rs

+ 2 - 2
src/vm.rs

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