Skip to content

Commit d88bc2f

Browse files
committed
use /v3 for the url
1 parent ac77172 commit d88bc2f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/rpc/openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ paths:
929929
example:
930930
$ref: ./api/core-node/get-health-error.example.json
931931

932-
/v2/contracts/fast-call-read/{contract_address}/{contract_name}/{function_name}:
932+
/v3/contracts/fast-call-read/{contract_address}/{contract_name}/{function_name}:
933933
post:
934934
summary: Call read-only function in fast mode (no cost tracking)
935935
tags:

stackslib/src/net/api/fastcallreadonly.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@ impl HttpRequest for RPCFastCallReadOnlyRequestHandler {
8181

8282
fn path_regex(&self) -> Regex {
8383
Regex::new(&format!(
84-
"^/v2/contracts/fast-call-read/(?P<address>{})/(?P<contract>{})/(?P<function>{})$",
84+
"^/v3/contracts/fast-call-read/(?P<address>{})/(?P<contract>{})/(?P<function>{})$",
8585
*STANDARD_PRINCIPAL_REGEX_STRING, *CONTRACT_NAME_REGEX_STRING, *CLARITY_NAME_REGEX
8686
))
8787
.unwrap()
8888
}
8989

9090
fn metrics_identifier(&self) -> &str {
91-
"/v2/contracts/fast-call-read/:principal/:contract_name/:func_name"
91+
"/v3/contracts/fast-call-read/:principal/:contract_name/:func_name"
9292
}
9393

9494
/// Try to decode this request.
@@ -340,7 +340,7 @@ impl StacksHttpRequest {
340340
host,
341341
"POST".into(),
342342
format!(
343-
"/v2/contracts/fast-call-read/{}/{}/{}",
343+
"/v3/contracts/fast-call-read/{}/{}/{}",
344344
&contract_addr, &contract_name, &function_name
345345
),
346346
HttpRequestContents::new().for_tip(tip_req).payload_json(

0 commit comments

Comments
 (0)