Przeglądaj źródła

proof/deploy_contract: Syntax fix.

Luther Blissett 3 lat temu
rodzic
commit
976fc6ceaa
2 zmienionych plików z 2 dodań i 1 usunięć
  1. 1 1
      proof/deploy_contract.zk
  2. 1 0
      src/zkas/compiler.rs

+ 1 - 1
proof/deploy_contract.zk

@@ -19,7 +19,7 @@ circuit "DeployContract" {
 	constrain_instance(signature_y);
 
 	# Derive the contract address from the public key's coordinates
-	address = poseidon_hash(signature_x, signature_y)
+	address = poseidon_hash(signature_x, signature_y);
 	constrain_instance(address);
 
 	# Constrain the byte size of the deployed binaries

+ 1 - 0
src/zkas/compiler.rs

@@ -81,6 +81,7 @@ impl Compiler {
                 StatementType::Assign => tmp_stack.push(&i.lhs.as_ref().unwrap().name),
                 // In case of a simple call, we don't append anything to the stack
                 StatementType::Call => {}
+                // TODO: FIXME: unreachable is reached with missing semicolons in the code
                 _ => unreachable!(),
             }