Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
DOBEN committed Oct 17, 2023
1 parent 19c57bb commit 19434a2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
8 changes: 1 addition & 7 deletions templates/default/deploy-scripts/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,8 @@ version = "1.0.0"
[dependencies]
anyhow = "1.0"
chrono = "0.4.26"
hex = "0.4"
reqwest = {version = "0.11", features = ["json"]}
serde = "1.0"
serde_json = "1.0"
sha2 = "0.10"
thiserror = "1.0"
tokio = {version = "1.18", features = ["rt", "macros", "rt-multi-thread"] }
clap = { version = "4", features = ["derive", "env"]}
concordium-rust-sdk="2.4"
itertools = "0.11.0"
default = {path = "../"}
{{crate_name}} = {path = "../"}
12 changes: 6 additions & 6 deletions templates/default/deploy-scripts/src/deployer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ impl Deployer {

/// A function to deploy a wasm module on the chain.
///
/// If successful, the transaction hash and
/// the module reference is returned.
/// If successful, the transaction hash, the block item, and
/// the module reference are returned.
/// If the module already exists on
/// chain, this function returns the module reference of the already
/// deployed module instead.
/// deployed module (no transaction hash or the block item returned).
///
/// An optional expiry time for the transaction
/// can be given. If `None` is provided, the local time + 300 seconds is
Expand Down Expand Up @@ -133,7 +133,7 @@ impl Deployer {

/// A function to initialize a smart contract instance on the chain.
///
/// If successful, the transaction hash and the contract address is
/// If successful, the transaction hash, the block item, and the contract address are
/// returned.
///
/// An optional energy for the transaction can be given. If `None` is
Expand Down Expand Up @@ -190,7 +190,7 @@ impl Deployer {
/// A function to update a smart contract instance on the chain.
///
/// If successful, the transaction
/// hash is returned.
/// hash, and the block item are returned.
///
/// An optional energy for the transaction can be
/// given. If `None` is provided, 50000 energy is used as a default energy
Expand Down Expand Up @@ -278,7 +278,7 @@ impl Deployer {
}
}

/// A function to get the current nonce of the wallet account.
/// A function to get the next nonce of the wallet account.
pub async fn get_nonce(
&mut self,
address: AccountAddress,
Expand Down
4 changes: 2 additions & 2 deletions templates/default/deploy-scripts/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pub mod deployer;
use anyhow::{Error,Context};
use anyhow::{Context, Error};
use clap::Parser;
use concordium_rust_sdk::{
common::types::Amount,
Expand All @@ -8,7 +8,7 @@ use concordium_rust_sdk::{
types::{OwnedContractName, OwnedParameter, OwnedReceiveName},
},
types::{
smart_contracts::{ ModuleReference, WasmModule},
smart_contracts::{ModuleReference, WasmModule},
transactions,
transactions::send::GivenEnergy,
},
Expand Down

0 comments on commit 19434a2

Please sign in to comment.