iotex-desktop-wallet
iotex-desktop-wallet copied to clipboard
display specific error msg for reverted execution

what to do
receipt has a field to indicate specific error msg, see https://github.com/iotexproject/iotex-proto/blob/master/golang/iotextypes/action.pb.go#L2611
if Receipt.Status == ErrExecutionReverted {
if Receipt.ExecutionRevertMsg != null {
display `Receipt.ExecutionRevertMsg` on the page
} else {
display `ErrExecutionReverted` // current on page
}
}