diff --git a/epoch-indexer/Cargo.toml b/epoch-indexer/Cargo.toml index 0a6cf998..01cfc60e 100644 --- a/epoch-indexer/Cargo.toml +++ b/epoch-indexer/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" [dependencies] aws-credential-types = "1.0.0" -aws-sdk-s3 = "0.39.1" +aws-sdk-s3 = { version = "0.39.1", features = ["behavior-version-latest"] } aws-types = "1.0.0" anyhow = "1.0.70" clap = { version = "3.1.6", features = ["color", "derive", "env"] } diff --git a/readnode-primitives/src/lib.rs b/readnode-primitives/src/lib.rs index 2f7c22c3..65b5e53e 100644 --- a/readnode-primitives/src/lib.rs +++ b/readnode-primitives/src/lib.rs @@ -242,7 +242,7 @@ where type Error = anyhow::Error; fn try_from(value: (String, String, T, T)) -> Result { - let receipt_id = CryptoHash::try_from(value.0.as_bytes()).map_err(|err| { + let receipt_id = CryptoHash::from_str(&value.0).map_err(|err| { anyhow::anyhow!("Failed to parse `receipt_id` to CryptoHash: {}", err) })?; let parent_transaction_hash = CryptoHash::from_str(&value.1).map_err(|err| { diff --git a/rpc-server/Cargo.toml b/rpc-server/Cargo.toml index 6798bc70..b8450e81 100644 --- a/rpc-server/Cargo.toml +++ b/rpc-server/Cargo.toml @@ -9,7 +9,7 @@ actix-cors = "0.6.5" anyhow = "1.0.70" assert-json-diff = { version = "2.0.2", optional = true } aws-credential-types = "1.0.0" -aws-sdk-s3 = "0.39.1" +aws-sdk-s3 = { version = "0.39.1", features = ["behavior-version-latest"] } aws-types = "1.0.0" borsh = "0.10.2" clap = { version = "3.2.22", features = ["color", "derive", "env"] } diff --git a/state-indexer/Cargo.toml b/state-indexer/Cargo.toml index 4d34cf3f..73dcc35f 100644 --- a/state-indexer/Cargo.toml +++ b/state-indexer/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" [dependencies] actix-web = "4.2.1" -aws-sdk-s3 = "0.39.1" +aws-sdk-s3 = { version = "0.39.1", features = ["behavior-version-latest"] } aws-types = "1.0.0" anyhow = "1.0.70" borsh = "0.10.2" diff --git a/tx-indexer/Cargo.toml b/tx-indexer/Cargo.toml index 60a6f81e..4e33b58a 100644 --- a/tx-indexer/Cargo.toml +++ b/tx-indexer/Cargo.toml @@ -8,7 +8,7 @@ actix-web = "4.2.1" anyhow = "1.0.70" async-trait = "0.1.66" aws-credential-types = "1.0.0" -aws-sdk-s3 = "0.39.1" +aws-sdk-s3 = { version = "0.39.1", features = ["behavior-version-latest"] } aws-types = "1.0.0" clap = { version = "3.2.22", features = ["color", "derive", "env"] } dotenv = "0.15.0"