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

handle nil error #155

Merged
merged 1 commit into from
Apr 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading