soroban-cli icon indicating copy to clipboard operation
soroban-cli copied to clipboard

cli: improve error when attempting to invoke a non-existing contract

Open tomerweller opened this issue 2 years ago • 2 comments

I accidentally tried to invoke a contract using the wasm hash as the id (yes, I'm an idiot). The cryptic response was: error: Missing result in successful response. Can we put something more helpful?

Bonus points: Could we add a hint to the error in case the id looks like a wasm hash. "are you trying to use the wasm hash as a contract id"?

tomerweller avatar Jul 28 '23 00:07 tomerweller