splinter icon indicating copy to clipboard operation
splinter copied to clipboard

Scabbard client does not return error_data returned in InvalidTransaction error

Open arsulegai opened this issue 5 years ago • 3 comments

The error_data is always empty [] when using the scabbard exec command. One has to peep into the Splinter daemon logs to know what is printed by the smart contract. The log captured by this client is from the [consensus::consensus::two_phase] when looked into the Splinter daemon logs.

arsulegai avatar Feb 09 '20 18:02 arsulegai

Sabre transactions don't yet return the error data from the handler. The exports in the to the WASM runtime need to be updated to support this.

In other words, this is more of a Sabre bug than a splinter bug.

peterschwarz avatar Feb 10 '20 16:02 peterschwarz

Sabre transactions don't yet return the error data from the handler. The exports in the to the WASM runtime need to be updated to support this.

In other words, this is more of a Sabre bug than a splinter bug.

When I say error_data, my expectation was to see the message that is put in InvalidTransaction. Are we on same page with this understanding?

arsulegai avatar Feb 10 '20 16:02 arsulegai

Yes, I believe so.

peterschwarz avatar Feb 10 '20 17:02 peterschwarz