From f9860c789c8c8de9dbc6af3e553b59e25bed0d9c Mon Sep 17 00:00:00 2001 From: Saeed Dadkhah Date: Mon, 25 Dec 2023 12:46:44 +0330 Subject: [PATCH] Update docs. --- src/contract.rs | 2 ++ src/lib.rs | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/contract.rs b/src/contract.rs index f668998..9b934d8 100644 --- a/src/contract.rs +++ b/src/contract.rs @@ -3,6 +3,8 @@ use std::{path::Path, str::FromStr}; use crate::{run_scilla_fmt, Error, FieldList, TransitionList}; #[derive(Debug, PartialEq)] +/// The `Contract` struct represents a parsed contract in Rust, including its name, initialization +/// parameters, fields, and transitions. pub struct Contract { /// Name of the parsed contract pub name: String, diff --git a/src/lib.rs b/src/lib.rs index 610c289..4994d27 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -14,7 +14,6 @@ use std::{path::Path, process::Command}; /// Run the scilla-fmt command using docker to generate a s-expression out of a given scilla contract. pub fn run_scilla_fmt(path: &Path) -> Result { - //docker run --rm -v contract.scilla:/tmp/input.scilla -i zilliqa/scilla:v0.13.3 /scilla/0/bin/scilla-fmt --sexp --human-readable -d /tmp/input.scilla let volume = &format!( "{}:/tmp/input.scilla", path.canonicalize().unwrap().display()