[BUG] Transactions fail silently without verbose error messaging
Describe the bug
Update: The reported issue was a JSON structure issue, but there is no error reporting to indicate that. Same steps to reproduce below.
Clicking "Submit" on the Submit Proposal section of the Governance view using the default JSON generates a 400 bad request error referencing a CORS issue. The accordion does not close and the toast does not fire. The following logs are generated:
Console Log Response {type: 'cors', url: 'http://localhost:50002/v1/tx', redirected: false, status: 400, ok: false, …} body: (...) bodyUsed: false headers: Headers {} ok: false redirected: false status: 400 statusText: "Bad Request" type: "cors" url: "http://localhost:50002/v1/tx" [[Prototype]]: Response
Request Payload {type: "change_parameter",…} fee: 10000 memo: "test" msg: {parameter_space: "cons", parameter_key: "block_size", parameter_value: 1000, start_height: 1,…} end_height: 100 parameter_key: "block_size" parameter_space: "cons" parameter_value: 1000 signer: "1fe1e32edc41d688..." start_height: 1 signature: {public_key: "a88b9c0c7b77e7f8ac...", signature: "8f6d016d04e350..."} public_key: "a88b9c0c7b77e7f8ac..." signature: "8f6d016d04e350..." type: "change_parameter"
Steps to reproduce
Steps to reproduce the behavior:
- Go to Governance view and open the "Submit Proposal" accordion
- Optional: Set a memo value
- Click submit
- See error
Expected behavior
On submit, the accordion should close and the transaction should be sent.
Screenshots
Environment
- Browser: Chrome v. 123.0.6312.106
Additional context
n/a
Required Tags
- Priority: Low
- Module: Governance
New explorer implementation obsolesces this