Skip to content

Commit

Permalink
Update docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
saeed-zil committed Dec 25, 2023
1 parent f285fae commit f9860c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, Error> {
//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()
Expand Down

0 comments on commit f9860c7

Please sign in to comment.