cashubtc/cashu-ts

Connect to mint fails because of trailing slash

Closed this issue · 3 comments

When the mint URL supplied to the CashuMint class contains a trailing URL. the connect request would fail as shown here:
image. This could cause some confusion should for a regular user without technical knowhow

Solution: the CashuMint Class should handle trailing URLS by removing the trailing slash in the class if it exists

@callebtc please let me know your thoughts towards this. Looking forward to your response!

Agreed! Please feel free to open an PR!

Alright thanks! on it