iotex-desktop-wallet icon indicating copy to clipboard operation
iotex-desktop-wallet copied to clipboard

display specific error msg for reverted execution

Open dustinxie opened this issue 3 years ago • 0 comments

revert

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
   }
}

dustinxie avatar Sep 24 '21 21:09 dustinxie