Skip to content

Commit ba85804

Browse files
committed
Fix contracts
1 parent c4fd813 commit ba85804

File tree

13 files changed

+24
-21
lines changed

13 files changed

+24
-21
lines changed

contracts/burner/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ default = []
2929
cranelift = ["cosmwasm-vm/cranelift"]
3030
# for quicker tests, cargo test --lib
3131
# for more explicit tests, cargo test --features=backtraces
32-
backtraces = ["cosmwasm-std/backtraces", "cosmwasm-vm/backtraces"]
32+
backtraces = ["cosmwasm-vm/backtraces"]
3333

3434
[dependencies]
3535
cosmwasm-schema = { path = "../../packages/schema" }

contracts/crypto-verify/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ default = []
2929
cranelift = ["cosmwasm-vm/cranelift"]
3030
# for quicker tests, cargo test --lib
3131
# for more explicit tests, cargo test --features=backtraces
32-
backtraces = ["cosmwasm-std/backtraces", "cosmwasm-vm/backtraces"]
32+
backtraces = ["cosmwasm-vm/backtraces"]
3333

3434
[dependencies]
3535
cosmwasm-schema = { path = "../../packages/schema" }

contracts/crypto-verify/src/contract.rs

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -317,12 +317,13 @@ mod tests {
317317

318318
let res = query(deps.as_ref(), mock_env(), verify_msg);
319319
assert!(res.is_err());
320-
assert_eq!(
320+
assert!(matches!(
321321
res.unwrap_err(),
322322
StdError::VerificationErr {
323-
source: VerificationError::InvalidPubkeyFormat
323+
source: VerificationError::InvalidPubkeyFormat,
324+
..
324325
}
325-
)
326+
))
326327
}
327328

328329
#[test]
@@ -605,12 +606,13 @@ mod tests {
605606
};
606607
let res = query(deps.as_ref(), mock_env(), verify_msg);
607608
assert!(res.is_err());
608-
assert_eq!(
609+
assert!(matches!(
609610
res.unwrap_err(),
610611
StdError::VerificationErr {
611612
source: VerificationError::InvalidPubkeyFormat,
613+
..
612614
}
613-
)
615+
))
614616
}
615617

616618
#[test]
@@ -670,12 +672,13 @@ mod tests {
670672
};
671673
let res = query(deps.as_ref(), mock_env(), verify_msg);
672674
assert!(res.is_err());
673-
assert_eq!(
675+
assert!(matches!(
674676
res.unwrap_err(),
675677
StdError::VerificationErr {
676-
source: VerificationError::InvalidPubkeyFormat
678+
source: VerificationError::InvalidPubkeyFormat,
679+
..
677680
}
678-
)
681+
))
679682
}
680683

681684
#[test]

contracts/cyberpunk/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ default = []
2626
# Use cranelift backend instead of singlepass. This is required for development on 32 bit or ARM machines.
2727
cranelift = ["cosmwasm-vm/cranelift"]
2828
# For quicker tests, cargo test --lib. for more explicit tests, cargo test --features=backtraces
29-
backtraces = ["cosmwasm-std/backtraces", "cosmwasm-vm/backtraces"]
29+
backtraces = ["cosmwasm-vm/backtraces"]
3030

3131
[dependencies]
3232
cosmwasm-schema = { path = "../../packages/schema" }

contracts/empty/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ default = []
2929
cranelift = ["cosmwasm-vm/cranelift"]
3030
# for quicker tests, cargo test --lib
3131
# for more explicit tests, cargo test --features=backtraces
32-
backtraces = ["cosmwasm-std/backtraces", "cosmwasm-vm/backtraces"]
32+
backtraces = ["cosmwasm-vm/backtraces"]
3333

3434
[dependencies]
3535
cosmwasm-schema = { path = "../../packages/schema" }

contracts/floaty/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ default = []
2828
# Use cranelift backend instead of singlepass. This is required for development on 32 bit or ARM machines.
2929
cranelift = ["cosmwasm-vm/cranelift"]
3030
# For quicker tests, cargo test --lib. for more explicit tests, cargo test --features=backtraces
31-
backtraces = ["cosmwasm-std/backtraces", "cosmwasm-vm/backtraces"]
31+
backtraces = ["cosmwasm-vm/backtraces"]
3232

3333
[dependencies]
3434
cosmwasm-schema = { path = "../../packages/schema" }

contracts/hackatom/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ default = []
2828
# Use cranelift backend instead of singlepass. This is required for development on 32 bit or ARM machines.
2929
cranelift = ["cosmwasm-vm/cranelift"]
3030
# For quicker tests, cargo test --lib. for more explicit tests, cargo test --features=backtraces
31-
backtraces = ["cosmwasm-std/backtraces", "cosmwasm-vm/backtraces"]
31+
backtraces = ["cosmwasm-vm/backtraces"]
3232

3333
[dependencies]
3434
cosmwasm-schema = { path = "../../packages/schema" }

contracts/ibc-reflect-send/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ default = []
2929
cranelift = ["cosmwasm-vm/cranelift"]
3030
# for quicker tests, cargo test --lib
3131
# for more explicit tests, cargo test --features=backtraces
32-
backtraces = ["cosmwasm-std/backtraces", "cosmwasm-vm/backtraces"]
32+
backtraces = ["cosmwasm-vm/backtraces"]
3333

3434
[dependencies]
3535
cosmwasm-schema = { path = "../../packages/schema" }

contracts/ibc-reflect/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ default = []
2929
cranelift = ["cosmwasm-vm/cranelift"]
3030
# for quicker tests, cargo test --lib
3131
# for more explicit tests, cargo test --features=backtraces
32-
backtraces = ["cosmwasm-std/backtraces", "cosmwasm-vm/backtraces"]
32+
backtraces = ["cosmwasm-vm/backtraces"]
3333

3434
[dependencies]
3535
cosmwasm-schema = { path = "../../packages/schema" }

contracts/queue/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ default = []
2828
# Use cranelift backend instead of singlepass. This is required for development on 32 bit or ARM machines.
2929
cranelift = ["cosmwasm-vm/cranelift"]
3030
# For quicker tests, cargo test --lib. for more explicit tests, cargo test --features=backtraces
31-
backtraces = ["cosmwasm-std/backtraces", "cosmwasm-vm/backtraces"]
31+
backtraces = ["cosmwasm-vm/backtraces"]
3232
# this is to demonstrate conditional entry-points for cosmwasm-plus style
3333
library = []
3434

@@ -40,4 +40,4 @@ schemars = "0.8.3"
4040
serde = { version = "1.0.103", default-features = false, features = ["derive"] }
4141

4242
[dev-dependencies]
43-
cosmwasm-vm = { path = "../../packages/vm", default-features = false, features = ["iterator"] }
43+
cosmwasm-vm = { path = "../../packages/vm", default-features = false, features = ["iterator"] }

0 commit comments

Comments
 (0)