Skip to content

Commit f3ac5ab

Browse files
authored
Merge pull request #417 from near/develop
release 0.4.1
2 parents fb2b702 + b93cc8c commit f3ac5ab

File tree

5 files changed

+29
-15
lines changed

5 files changed

+29
-15
lines changed

.cargo/config.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[env]
2-
NEARCORE_VERSION = "2.6.5"
3-
NEARD_COMMIT = "fe3f6de3aea0433310bcb4b61d3b8517e7ba3ffd"
2+
NEARCORE_VERSION = "2.7.0"
3+
NEARD_COMMIT = "9ae6990f170591242ae79fce812d245024762f77"

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased](https://github.com/near/read-rpc/compare/main...develop)
99

10+
## [0.4.1](https://github.com/near/read-rpc/releases/tag/v0.4.1)
11+
12+
### What's Changed
13+
* Update nearcore vesions in the cargo config
14+
* Hotfix for contract execution
15+
* Hotfix to parse config.toml file
16+
17+
### Supported Nearcore Version
18+
- nearcore v2.7.0
19+
- rust v1.86.0
20+
1021
## [0.4.0](https://github.com/near/read-rpc/releases/tag/v0.4.0)
1122

1223
### What's Changed

Cargo.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[workspace.package]
2-
version = "0.3.4"
2+
version = "0.4.1"
33
authors = ["Near Inc <[email protected]>"]
44
edition = "2021"
55
rust-version = "1.86.0"

database/src/postgres/rpc_server.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ impl crate::ReaderDbManager for crate::PostgresDBManager {
225225
.inc();
226226
let (data_value,): (Vec<u8>,) = sqlx::query_as(
227227
"
228-
SELECT data_key, data_value
228+
SELECT data_value
229229
FROM state_changes_data_compact
230230
WHERE account_id = $1
231231
AND data_key = $2
@@ -317,7 +317,10 @@ impl crate::ReaderDbManager for crate::PostgresDBManager {
317317
.fetch_one(shard_id_pool.pool)
318318
.await?;
319319

320-
readnode_primitives::QueryData::<Vec<u8>>::try_from(result)
320+
Ok(readnode_primitives::QueryData {
321+
data: result.0,
322+
block_height: result.1 as u64,
323+
})
321324
}
322325

323326
async fn get_access_key(

0 commit comments

Comments
 (0)