From e6c93df3fe86fe4805dcd5160a30baa560072c9e Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Wed, 3 Jul 2024 14:19:15 +0300 Subject: [PATCH 1/6] fix compile.rs --- cubist-cli/src/commands/compile.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cubist-cli/src/commands/compile.rs b/cubist-cli/src/commands/compile.rs index 5ae656e..31d83de 100644 --- a/cubist-cli/src/commands/compile.rs +++ b/cubist-cli/src/commands/compile.rs @@ -57,7 +57,7 @@ fn compile_solc_files(config: &Config) -> Result<()> { let target_project = TargetProjectInfo::new(config, target)?; - // Only Solc supported at the moment + // Only Solc is supported at the moment if target_project.compiler != Compiler::Solc { continue; } From f437e7491806429144ded88b5d1e7d0320516294 Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Wed, 3 Jul 2024 14:19:33 +0300 Subject: [PATCH 2/6] fix new.rs --- cubist-cli/src/commands/new.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cubist-cli/src/commands/new.rs b/cubist-cli/src/commands/new.rs index 851f20f..cd7690d 100644 --- a/cubist-cli/src/commands/new.rs +++ b/cubist-cli/src/commands/new.rs @@ -14,7 +14,7 @@ use cubist_config::ProjType; /// * `name` - Project name /// * `type_` - Project type/language /// * `dir` - Directory to create the project in -/// * `force` - Force overwrite existing configuration if one exists +/// * `force` - Force overwrites existing configuration if one exists pub fn empty(name: &str, type_: ProjType, dir: &Path, force: bool) -> Result<()> { println!( "{} new {} project {} in {}", From 9a3b87338331fde5069d2d1f9c1f1e8f04b21d59 Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Wed, 3 Jul 2024 14:20:35 +0300 Subject: [PATCH 3/6] fix pre_compile.rs --- cubist-cli/src/commands/pre_compile.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cubist-cli/src/commands/pre_compile.rs b/cubist-cli/src/commands/pre_compile.rs index ec04fa0..2153ccf 100644 --- a/cubist-cli/src/commands/pre_compile.rs +++ b/cubist-cli/src/commands/pre_compile.rs @@ -205,7 +205,7 @@ impl PreCompiler { } /// Attempts to compile the original source files. This ensures that the later steps in our - /// compilation process deal with sane source files. + /// compilation process deals with sane source files. pub fn validate_solidity_source_files( compiler_config: &CompilerConfig, contracts: &ContractsConfig, From f5ff5508bf04201c82fdaa025657212f0157cb63 Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Wed, 3 Jul 2024 14:21:29 +0300 Subject: [PATCH 4/6] fix relayer.rs --- cubist-cli/src/commands/relayer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cubist-cli/src/commands/relayer.rs b/cubist-cli/src/commands/relayer.rs index ecc5f1d..3526c9e 100644 --- a/cubist-cli/src/commands/relayer.rs +++ b/cubist-cli/src/commands/relayer.rs @@ -343,7 +343,7 @@ impl Relayer { /// # Returns /// /// A future that completes when all necessary bridges are spun up - /// (i.e., when they have already regestered listeners for all + /// (i.e., when they have already registered listeners for all /// events of interest). async fn bridges_for_deployment( &mut self, From 65bdd126a953b76b7896fe679fd2c37a866ac20a Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Wed, 3 Jul 2024 14:21:54 +0300 Subject: [PATCH 5/6] fix cli.rs --- cubist-cli/src/cli.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cubist-cli/src/cli.rs b/cubist-cli/src/cli.rs index 5ae4ef9..dad3737 100644 --- a/cubist-cli/src/cli.rs +++ b/cubist-cli/src/cli.rs @@ -39,7 +39,7 @@ pub enum Commands { /// Directory where to create project #[clap(long = "dir", value_parser, value_hint = clap::ValueHint::DirPath)] dir: Option, - /// Force creation (e.g., by overwrite existing files or ignoring non-standard templates) + /// Force creation (e.g., by overwriting existing files or ignoring non-standard templates) #[clap(long, action, default_value = "false")] force: bool, /// Branch to pull from, if creating a project from template From a72557fcdc9a7937b9bad2638f48cd80376bae18 Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Wed, 3 Jul 2024 14:25:26 +0300 Subject: [PATCH 6/6] fix README.md --- cubist-node-sdk/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cubist-node-sdk/README.md b/cubist-node-sdk/README.md index 2496dd2..6615ac3 100644 --- a/cubist-node-sdk/README.md +++ b/cubist-node-sdk/README.md @@ -10,7 +10,7 @@ With Cubist, you write contracts as if they were all going to be deployed on the same chain. This means you can have a contract directly call a method on another contract, as if they were on the same chain. You don't need to commit to the chain you're going to deploy a contract to in advance nor clutter your -code with low-level, error-prone message passing code. Instead, with Cubist, +code with low-level, error-prone message-passing code. Instead, with Cubist, you specify your deployment plan in a [config file][CubistConfig] by mapping contract source files to target chains. @@ -148,8 +148,8 @@ Then let's create two solidity files in the `contracts` directory: } ``` -Let's also say we want deploy `Receiver` to Ethereum and the `Sender` to -Polygon. To do this, we to need update the `contracts` build and deployment +Let's also say we want to deploy `Receiver` to Ethereum and the `Sender` to +Polygon. To do this, we need to update the `contracts` build and deployment plan in `cubst-config.json`: ```json