echovl / cardano-go

Go module for the Cardano Blockchain
GNU General Public License v3.0
51 stars 27 forks source link

Testnet Option Not Working Due to Decommissioned Testnet #52

Open antonkazachenko opened 8 months ago

antonkazachenko commented 8 months ago

Hey there!

I added some code to log the raw response from the API, and to my surprise, I got a message saying the Cardano testnet network has been decommissioned. Here's the snippet where I logged the response in the AddressUTXOs function:

bodyBytes, err := io.ReadAll(res.Body)
if err != nil {
    return nil, err
}
bodyString := string(bodyBytes)
fmt.Println(bodyString)

And here's the message I got: {"status_code":400,"error":"Bad Request","message":"Cardano testnet network has been decommissioned."}

I initially thought this was an issue with the library, but then I realized it was just the API response to my request. Maybe we could update the library or its documentation to give a heads up about the testnet situation? It could save others some time and confusion.

Thanks!