Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
handle nil error (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
TymKh authored Apr 22, 2024
1 parent b996797 commit c5b15c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/sbundle_sim.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ func SimBundle(config *params.ChainConfig, bc *BlockChain, author *common.Addres
return res, err
}
res.Revert = result.Revert()
res.ExecError = result.Err.Error()
if result.Err != nil {
res.ExecError = result.Err.Error()
}
if receipt.Status != types.ReceiptStatusSuccessful && !el.CanRevert {
return res, ErrTxFailed
}
Expand Down

0 comments on commit c5b15c4

Please sign in to comment.