Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[env]
NEARCORE_VERSION = "2.6.5"
NEARD_COMMIT = "fe3f6de3aea0433310bcb4b61d3b8517e7ba3ffd"
NEARCORE_VERSION = "2.7.0"
NEARD_COMMIT = "9ae6990f170591242ae79fce812d245024762f77"
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 10 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace.package]
version = "0.3.4"
version = "0.4.1"
authors = ["Near Inc <[email protected]>"]
edition = "2021"
rust-version = "1.86.0"
Expand Down
7 changes: 5 additions & 2 deletions database/src/postgres/rpc_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ impl crate::ReaderDbManager for crate::PostgresDBManager {
.inc();
let (data_value,): (Vec<u8>,) = sqlx::query_as(
"
SELECT data_key, data_value
SELECT data_value
FROM state_changes_data_compact
WHERE account_id = $1
AND data_key = $2
Expand Down Expand Up @@ -317,7 +317,10 @@ impl crate::ReaderDbManager for crate::PostgresDBManager {
.fetch_one(shard_id_pool.pool)
.await?;

readnode_primitives::QueryData::<Vec<u8>>::try_from(result)
Ok(readnode_primitives::QueryData {
data: result.0,
block_height: result.1 as u64,
})
}

async fn get_access_key(
Expand Down
Loading