You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a view simulation fails, Taquito parses the error received from the RPC. If the error contains a with property, which is the case when a FAILWITH instruction is reached, Taquito throws a ViewSimulationError. The details are included in the error message of the ViewSimulationError which looks like The simulation of the on-chain view named x failed with: x.
In the current implementation, the message is not useful, because the error must be retrieved from it by parsing the string.
Add an extra field to the class ViewSimulationError that will only store the error that the contract gave when a FAILWITH instruction is reached.
The text was updated successfully, but these errors were encountered:
roxaneletourneau
changed the title
Improved the error returned when a view simulation hits a FAILWITH instruction
Improve the error returned when a view simulation hits a FAILWITH instruction
Jan 10, 2022
When a view simulation fails, Taquito parses the error received from the RPC. If the error contains a
with
property, which is the case when aFAILWITH
instruction is reached, Taquito throws aViewSimulationError
. The details are included in the error message of theViewSimulationError
which looks likeThe simulation of the on-chain view named x failed with: x
.In the current implementation, the message is not useful, because the error must be retrieved from it by parsing the string.
Add an extra field to the class
ViewSimulationError
that will only store the error that the contract gave when aFAILWITH
instruction is reached.The text was updated successfully, but these errors were encountered: