snarkVM icon indicating copy to clipboard operation
snarkVM copied to clipboard

[Bug] fix use vm client connection local beacon rest service url error

Open Linuxpizi opened this issue 2 years ago • 0 comments

🐛 Bug Report

relation pr: #1281

now, when i use local beacon rest service test to get records and transafer, first i create a client like

let client = Client::<N>::new("http://127.0.0.1:3030")?;

but the internal use Url::parse function will append / in suffix, it will be http://127.0.0.1:3030/.

when send a request to beacon rest service the url will become http://127.0.0.1:3030//testnet3/latest/height it is a invalid url

Steps to Reproduce

Expected Behavior

(Write what you expected to happen here)

Linuxpizi avatar Dec 01 '22 03:12 Linuxpizi