diff --git a/.cargo/config.toml b/.cargo/config.toml index 7ac1f5bb..e9bd2c0f 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,3 +1,3 @@ [env] -NEARCORE_VERSION = "2.6.5" -NEARD_COMMIT = "fe3f6de3aea0433310bcb4b61d3b8517e7ba3ffd" +NEARCORE_VERSION = "2.7.0" +NEARD_COMMIT = "9ae6990f170591242ae79fce812d245024762f77" diff --git a/CHANGELOG.md b/CHANGELOG.md index 86e2c401..a017b818 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased](https://github.com/near/read-rpc/compare/main...develop) +## [0.4.1](https://github.com/near/read-rpc/releases/tag/v0.4.1) + +### What's Changed + * Update nearcore vesions in the cargo config + * Hotfix for contract execution + * Hotfix to parse config.toml file + +### Supported Nearcore Version +- nearcore v2.7.0 +- rust v1.86.0 + ## [0.4.0](https://github.com/near/read-rpc/releases/tag/v0.4.0) ### What's Changed diff --git a/Cargo.lock b/Cargo.lock index 1e4f5493..38b9063e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1437,7 +1437,7 @@ dependencies = [ [[package]] name = "cache-storage" -version = "0.3.4" +version = "0.4.1" dependencies = [ "anyhow", "futures", @@ -1610,7 +1610,7 @@ dependencies = [ [[package]] name = "configuration" -version = "0.3.4" +version = "0.4.1" dependencies = [ "anyhow", "dotenv", @@ -2103,7 +2103,7 @@ dependencies = [ [[package]] name = "database" -version = "0.3.4" +version = "0.4.1" dependencies = [ "anyhow", "async-trait", @@ -3740,7 +3740,7 @@ checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94" [[package]] name = "logic-state-indexer" -version = "0.3.4" +version = "0.4.1" dependencies = [ "actix-web", "anyhow", @@ -5766,7 +5766,7 @@ checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" [[package]] name = "perf-testing" -version = "0.3.4" +version = "0.4.1" dependencies = [ "anyhow", "chrono", @@ -6444,7 +6444,7 @@ dependencies = [ [[package]] name = "read-rpc-server" -version = "0.3.4" +version = "0.4.1" dependencies = [ "actix-cors 0.7.1", "actix-web", @@ -6487,7 +6487,7 @@ dependencies = [ [[package]] name = "readnode-primitives" -version = "0.3.4" +version = "0.4.1" dependencies = [ "anyhow", "borsh", @@ -7858,7 +7858,7 @@ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" [[package]] name = "state-indexer" -version = "0.3.4" +version = "0.4.1" dependencies = [ "anyhow", "clap", @@ -8731,7 +8731,7 @@ checksum = "8b907da542cbced5261bd3256de1b3a1bf340a3d37f93425a07362a1d687de56" [[package]] name = "tx-details-storage" -version = "0.3.4" +version = "0.4.1" dependencies = [ "anyhow", "async-trait", @@ -8747,7 +8747,7 @@ dependencies = [ [[package]] name = "tx-indexer" -version = "0.3.4" +version = "0.4.1" dependencies = [ "actix-web", "anyhow", diff --git a/Cargo.toml b/Cargo.toml index 0c74bc61..c03007bd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [workspace.package] -version = "0.3.4" +version = "0.4.1" authors = ["Near Inc "] edition = "2021" rust-version = "1.86.0" diff --git a/database/src/postgres/rpc_server.rs b/database/src/postgres/rpc_server.rs index a4d32b98..712fa8d9 100644 --- a/database/src/postgres/rpc_server.rs +++ b/database/src/postgres/rpc_server.rs @@ -225,7 +225,7 @@ impl crate::ReaderDbManager for crate::PostgresDBManager { .inc(); let (data_value,): (Vec,) = sqlx::query_as( " - SELECT data_key, data_value + SELECT data_value FROM state_changes_data_compact WHERE account_id = $1 AND data_key = $2 @@ -317,7 +317,10 @@ impl crate::ReaderDbManager for crate::PostgresDBManager { .fetch_one(shard_id_pool.pool) .await?; - readnode_primitives::QueryData::>::try_from(result) + Ok(readnode_primitives::QueryData { + data: result.0, + block_height: result.1 as u64, + }) } async fn get_access_key(