Skip to content

Commit

Permalink
update EXPERIMENTAL_changes{,in_block} (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
miraclx committed Sep 1, 2021
1 parent 19ae33d commit 53c8e10
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ borsh = "0.8.1"
serde = "1.0.127"
serde_json = "1.0.66"

near-primitives = { git = "https://github.com/miraclx/nearcore", rev="c8673972c14cd523f764d6ddc2839de3b34c10ff" }
near-chain-configs = { git = "https://github.com/miraclx/nearcore", rev="c8673972c14cd523f764d6ddc2839de3b34c10ff" }
near-client-primitives = { git = "https://github.com/miraclx/nearcore", rev="c8673972c14cd523f764d6ddc2839de3b34c10ff" }
near-jsonrpc-primitives = { git = "https://github.com/miraclx/nearcore", rev="c8673972c14cd523f764d6ddc2839de3b34c10ff" }
near-primitives = { git = "https://github.com/miraclx/nearcore", rev="e8761702b24271afffc5d293fe414612ae908b07" }
near-chain-configs = { git = "https://github.com/miraclx/nearcore", rev="e8761702b24271afffc5d293fe414612ae908b07" }
near-client-primitives = { git = "https://github.com/miraclx/nearcore", rev="e8761702b24271afffc5d293fe414612ae908b07" }
near-jsonrpc-primitives = { git = "https://github.com/miraclx/nearcore", rev="e8761702b24271afffc5d293fe414612ae908b07" }

[dev-dependencies]
tokio = { version = "1.1", features = ["rt", "macros"] }
Expand Down
6 changes: 3 additions & 3 deletions src/jsonrpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub enum ExperimentalJsonRpcMethod {
BroadcastTxSync {
tx: near_primitives::transaction::SignedTransaction,
},
Changes(near_jsonrpc_primitives::types::changes::RpcStateChangesInBlockRequest),
Changes(near_jsonrpc_primitives::types::changes::RpcStateChangesInBlockByTypeRequest),
ChangesInBlock(BlockReference),
CheckTx {
tx: near_primitives::transaction::SignedTransaction,
Expand Down Expand Up @@ -502,9 +502,9 @@ impl NearJsonRpcClient {
#[allow(non_snake_case)]
pub async fn EXPERIMENTAL_changes(
&self,
request: near_jsonrpc_primitives::types::changes::RpcStateChangesInBlockRequest,
request: near_jsonrpc_primitives::types::changes::RpcStateChangesInBlockByTypeRequest,
) -> JsonRpcMethodCallResult<
near_jsonrpc_primitives::types::changes::RpcStateChangesResponse,
near_jsonrpc_primitives::types::changes::RpcStateChangesInBlockByTypeResponse,
near_jsonrpc_primitives::types::changes::RpcStateChangesError,
> {
Experimental(Changes(request)).call_on(self).await
Expand Down

0 comments on commit 53c8e10

Please sign in to comment.