Skip to content

Commit

Permalink
hook for poolv1.near
Browse files Browse the repository at this point in the history
  • Loading branch information
kobayurii committed Jun 4, 2024
1 parent dacba79 commit b2621bd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion rpc-server/src/modules/queries/methods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,13 @@ async fn query_call(
account_id,
method_name,
args,
} => function_call(data, block, account_id, method_name, args, is_optimistic).await,
} => {
if account_id.to_string().ends_with("poolv1.near") {
return Ok(data.near_rpc_client.call(query_request).await?);
} else {
function_call(data, block, account_id, method_name, args, is_optimistic).await
}
}
#[allow(unused_variables)]
// `account_id` is used in the `#[cfg(feature = "account_access_keys")]` branch.
near_primitives::views::QueryRequest::ViewAccessKeyList { account_id } => {
Expand Down

0 comments on commit b2621bd

Please sign in to comment.