Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: handle transaction request failure
When the transaction request fails, we get an error message that should be handled as a string. However, we currently parse all responses as a JSON, which leads to a `JSONDecodeError`. Handle response failures gracefully by checking if the request failed, and returning the appropriate response.
- Loading branch information