Skip to content

Commit

Permalink
Bump crates to the latest versions
Browse files Browse the repository at this point in the history
  • Loading branch information
m-lord-renkse committed Apr 23, 2024
1 parent b75f193 commit fb1c014
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
matrix:
include:
- rust: 1.70.0
- rust: 1.77.2
examples: false
continue-on-error: false
- rust: stable
Expand Down
4 changes: 2 additions & 2 deletions ethcontract-mock/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ Tools for mocking ethereum contracts.
[dependencies]
ethcontract = { version = "0.25.6", path = "../ethcontract", default-features = false, features = ["derive"] }
hex = "0.4"
mockall = "0.11"
mockall = "0.12.1"
rlp = "0.5"
predicates = "3.0"

[dev-dependencies]
tokio = { version = "1.6", features = ["macros", "rt"] }
tokio = { version = "1.37.0", features = ["macros", "rt"] }
ethcontract-derive = { version = "0.25.6", path = "../ethcontract-derive", default-features = false }
24 changes: 12 additions & 12 deletions ethcontract/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,26 +32,26 @@ ws-tls-tokio = ["web3/ws-tls-tokio"]
ws-tokio = ["web3/ws-tokio"]

[dependencies]
aws-config = { version = "0.55", optional = true }
aws-sdk-kms = { version = "0.28", optional = true }
aws-config = { version = "1.2.0", features = ["behavior-version-latest"], optional = true }
aws-sdk-kms = { version = "1.21.0", optional = true }
arrayvec = "0.7"
ethcontract-common = { version = "0.25.6", path = "../ethcontract-common" }
ethcontract-derive = { version = "0.25.6", path = "../ethcontract-derive", optional = true, default-features = false }
futures = "0.3"
futures-timer = "3.0"
hex = "0.4"
hex = "0.4.3"
jsonrpc-core = "18.0"
lazy_static = "1.4"
primitive-types = { version = "0.12", features = ["fp-conversion"] }
rlp = { version = "0.5", default-features = false, optional = true }
secp256k1 = { version = "0.27", features = ["recovery"] }
primitive-types = { version = "0.12.2", features = ["fp-conversion"] }
rlp = { version = "0.5.2", default-features = false, optional = true }
secp256k1 = { version = "0.29.0", features = ["recovery"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
thiserror = "1.0"
uint = "0.9"
serde_json = "1.0.116"
thiserror = "1.0.58"
uint = "0.9.5"
web3 = { version = "0.19", default-features = false, features = ["signing"] }
zeroize = "1.1"
zeroize = "1.7.0"

[dev-dependencies]
hex-literal = "0.4"
tokio = { version = "1.6", features = ["macros"] }
hex-literal = "0.4.1"
tokio = { version = "1.37.0", features = ["macros"] }
4 changes: 2 additions & 2 deletions ethcontract/src/int.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1290,11 +1290,11 @@ mod tests {
assert_eq!(I256::one().to_string(), "1");
assert_eq!(I256::minus_one().to_string(), "-1");
assert_eq!(
I256::max_value().to_string(),
I256::MAX.to_string(),
"57896044618658097711785492504343953926634992332820282019728792003956564819967"
);
assert_eq!(
I256::min_value().to_string(),
I256::MIN.to_string(),
"-57896044618658097711785492504343953926634992332820282019728792003956564819968"
);
}
Expand Down
2 changes: 2 additions & 0 deletions ethcontract/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ pub mod dyns {
pub type DynAllEventsBuilder<E> = AllEventsBuilder<DynTransport, E>;
}

#[allow(unknown_lints)]
#[allow(clippy::mixed_attributes_style)]
#[doc(hidden)]
pub mod private {
// Private definitions that are needed by the generated contract code or
Expand Down
3 changes: 2 additions & 1 deletion ethcontract/src/secret.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ impl Key for &'_ PrivateKey {
}

fn sign_message(&self, message: &[u8]) -> Result<Signature, SigningError> {
let message = Message::from_slice(message).map_err(|_| SigningError::InvalidMessage)?;
let message =
Message::from_digest_slice(message).map_err(|_| SigningError::InvalidMessage)?;
let (recovery_id, signature) = Secp256k1::signing_only()
.sign_ecdsa_recoverable(&message, self)
.serialize_compact();
Expand Down
4 changes: 2 additions & 2 deletions examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ autobins = false

[dev-dependencies]
ethcontract = { path = "../ethcontract", features = ["aws-kms"] }
futures = "0.3"
tokio = { version = "1.6", features = ["macros"] }
futures = "0.3.30"
tokio = { version = "1.37.0", features = ["macros"] }
2 changes: 1 addition & 1 deletion examples/examples/kms.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use std::env;
#[tokio::main]
async fn main() {
// Run `aws configure export-credentials --profile cow-staging --format env` to get required env variable locally
let config = aws_config::load_from_env().await;
let config = aws_config::from_env().load().await;
let account = kms::Account::new(
(&config).into(),
&env::var("KMS_KEY_ID").expect("KMS_KEY_ID not set"),
Expand Down

0 comments on commit fb1c014

Please sign in to comment.