snarkVM icon indicating copy to clipboard operation
snarkVM copied to clipboard

fix use local beacon rest path error

Open Linuxpizi opened this issue 2 years ago • 1 comments

Motivation

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

Test Plan

Related PRs

(Link your related PRs here)

Linuxpizi avatar Nov 30 '22 09:11 Linuxpizi

#1284

Linuxpizi avatar Dec 01 '22 03:12 Linuxpizi