fix: fix url in prover.rs

This commit is contained in:
tsukino
2024-04-09 23:50:58 +08:00
parent 3bb22ba9f7
commit 73c2a2b631
2 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "tlsn-js", "name": "tlsn-js",
"version": "v0.1.0-alpha.5.0", "version": "v0.1.0-alpha.5.1",
"description": "", "description": "",
"repository": "https://github.com/tlsnotary/tlsn-js", "repository": "https://github.com/tlsnotary/tlsn-js",
"main": "build/index.js", "main": "build/index.js",

View File

@@ -134,7 +134,7 @@ pub async fn prover(
// url // url
let url = format!( let url = format!(
"{}://{}/session", "{}://{}/v0.1.0-alpha.5/session",
if notary_ssl { "https" } else { "http" }, if notary_ssl { "https" } else { "http" },
notary_host notary_host
); );
@@ -149,7 +149,7 @@ pub async fn prover(
info!("Notarization response: {:?}", notarization_response,); info!("Notarization response: {:?}", notarization_response,);
let notary_wss_url = format!( let notary_wss_url = format!(
"{}://{}/notarize?sessionId={}", "{}://{}/v0.1.0-alpha.5/notarize?sessionId={}",
if notary_ssl { "wss" } else { "ws" }, if notary_ssl { "wss" } else { "ws" },
notary_host, notary_host,
notarization_response.session_id notarization_response.session_id