Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
iboss-ptk committed Sep 10, 2024
1 parent 13b8ae5 commit f9114d4
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
22 changes: 14 additions & 8 deletions contracts/transmuter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name = "transmuter"
version = "3.2.0"

exclude = [
# Those files are rust-optimizer artifacts. You might want to commit them for convenience but they should not be part of the source code publication.
"contract.wasm",
"hash.txt",
# Those files are rust-optimizer artifacts. You might want to commit them for convenience but they should not be part of the source code publication.
"contract.wasm",
"hash.txt",
]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down Expand Up @@ -42,19 +42,25 @@ optimize = """docker run --rm -v "$(pwd)":/code \
"""

[dependencies]
cosmwasm-schema = {workspace = true}
cosmwasm-std = {workspace = true, features = ["cosmwasm_1_1"]}
cosmwasm-schema = { workspace = true }
cosmwasm-std = { workspace = true, features = ["cosmwasm_1_1"] }
cosmwasm-storage = "1.3.1"
cw-storage-plus = "1.1.0"
cw2 = "1.1.0"
osmosis-std = "0.22.0"
schemars = "0.8.12"
serde = {version = "1.0.183", default-features = false, features = ["derive"]}
serde = { version = "1.0.183", default-features = false, features = ["derive"] }
sylvia = "0.10.1"
thiserror = {version = "1.0.44"}
transmuter_math = {version = "1.0.0", path = "../../packages/transmuter_math"}
thiserror = { version = "1.0.44" }
transmuter_math = { version = "1.0.0", path = "../../packages/transmuter_math" }

[dev-dependencies]
itertools = "0.12.0"
osmosis-test-tube = "22.1.0"
rstest = "0.18.2"

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = [
'cfg(tarpaulin)',
'cfg(tarpaulin_include)',
] }
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ fn test_add_new_assets() {
.build(&app);

// add new asset
let denoms = vec![
let denoms = [
"denom2".to_string(),
"denom3".to_string(),
"denom4".to_string(),
Expand Down
2 changes: 2 additions & 0 deletions contracts/transmuter/src/test/test_env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ use super::modules::cosmwasm_pool::CosmwasmPool;

pub struct TestEnv<'a> {
pub app: &'a OsmosisTestApp,
#[allow(dead_code)]
pub creator: SigningAccount,
pub contract: TransmuterContract<'a>,
pub accounts: HashMap<String, SigningAccount>,
Expand Down Expand Up @@ -137,6 +138,7 @@ impl TestEnvBuilder {

pub struct TransmuterContract<'a> {
app: &'a OsmosisTestApp,
#[allow(dead_code)]
pub code_id: u64,
pub pool_id: u64,
pub contract_addr: String,
Expand Down
1 change: 0 additions & 1 deletion packages/transmuter_math/src/errors.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use cosmwasm_std::{CheckedFromRatioError, DivideByZeroError, OverflowError};
use thiserror;

#[derive(thiserror::Error, Debug, PartialEq)]
pub enum TransmuterMathError {
Expand Down

0 comments on commit f9114d4

Please sign in to comment.