Skip to content

Commit

Permalink
Modify update call
Browse files Browse the repository at this point in the history
  • Loading branch information
pietrodimarco-dfinity committed Jan 30, 2025
1 parent e2d6ff9 commit 84067d3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/pocket-ic/test_canister/canister.did
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ service : {
canister_http : () -> (HttpResponseResult);
canister_http_with_transform : () -> (HttpResponse);
transform : (TransformArgs) -> (HttpResponse) query;
node_metrics_history_proxy: (NodeMetricsHistoryArgs) -> (vec NodeMetricsHistoryResponse) query;
node_metrics_history_proxy: (NodeMetricsHistoryArgs) -> (vec NodeMetricsHistoryResponse);
whoami : () -> (text);
whois : (principal) -> (text);
blob_len : (blob) -> (nat64);
Expand Down
2 changes: 1 addition & 1 deletion packages/pocket-ic/test_canister/src/canister.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ async fn canister_http_with_transform() -> HttpResponse {

// inter-canister calls

#[query]
#[update]
async fn node_metrics_history_proxy(
args: NodeMetricsHistoryArgs,
) -> Vec<NodeMetricsHistoryResponse> {
Expand Down
2 changes: 1 addition & 1 deletion packages/pocket-ic/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2268,7 +2268,7 @@ fn test_custom_blockmaker() {
pocket_ic.tick();

let response = pocket_ic
.query_call(
.update_call(
canister,
Principal::anonymous(),
"node_metrics_history_proxy",
Expand Down

0 comments on commit 84067d3

Please sign in to comment.