Skip to content

Commit

Permalink
Removed use of read_state_bytes_using_wasm everywhere except rpc and …
Browse files Browse the repository at this point in the history
…runtime api
  • Loading branch information
Lazark0x committed Oct 30, 2024
1 parent 50142d0 commit 32d1d54
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 547 deletions.
196 changes: 0 additions & 196 deletions examples/new-meta/tests/read_state.rs

This file was deleted.

9 changes: 6 additions & 3 deletions gclient/src/api/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,8 @@ impl GearApi {
.await
}

/// Same as [`read_state_bytes_using_wasm`](Self::read_state_bytes_using_wasm), but reads the program's state at the block identified by its hash.
/// Same as [`read_state_bytes_using_wasm`](Self::read_state_bytes_using_wasm),
/// but reads the program's state at the block identified by its hash.
pub async fn read_state_bytes_using_wasm_at(
&self,
program_id: ProgramId,
Expand Down Expand Up @@ -353,7 +354,8 @@ impl GearApi {
.await
}

/// Same as [`read_state_using_wasm_by_path`](Self::read_state_using_wasm_by_path), but reads the program's state at the block identified by its hash.
/// Same as [`read_state_using_wasm_by_path`](Self::read_state_using_wasm_by_path),
/// but reads the program's state at the block identified by its hash.
pub async fn read_state_bytes_using_wasm_by_path_at(
&self,
program_id: ProgramId,
Expand Down Expand Up @@ -388,7 +390,8 @@ impl GearApi {
.await
}

/// Same as [`read_state_using_wasm_by_path`](Self::read_state_using_wasm_by_path), but reads the program's state at the block identified by its hash.
/// Same as [`read_state_using_wasm_by_path`](Self::read_state_using_wasm_by_path),
/// but reads the program's state at the block identified by its hash.
pub async fn read_state_using_wasm_by_path_at<E: Encode, D: Decode>(
&self,
program_id: ProgramId,
Expand Down
147 changes: 0 additions & 147 deletions gclient/tests/state.rs

This file was deleted.

2 changes: 1 addition & 1 deletion gtest/src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ use gear_common::{
LockId, Origin,
};
use gear_core::{
code::{Code, CodeAndId, InstrumentedCode, InstrumentedCodeAndId, TryNewCodeConfig},
code::InstrumentedCode,
gas_metering::{DbWeights, RentWeights, Schedule},
ids::{prelude::*, CodeId, MessageId, ProgramId, ReservationId},
memory::PageBuf,
Expand Down
Loading

0 comments on commit 32d1d54

Please sign in to comment.