Skip to content

Commit

Permalink
err on suave precompile is type ErrExecutionReverted
Browse files Browse the repository at this point in the history
  • Loading branch information
halo3mic committed Dec 14, 2023
1 parent 3429ee5 commit f4b970c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/vm/suave.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ func (p *SuavePrecompiledContractWrapper) Run(input []byte) ([]byte, error) {
ret, err := stub.run(p.addr, input)
if err != nil && ret == nil {
ret = []byte(err.Error())
err = ErrExecutionReverted
}

return ret, err
Expand Down

0 comments on commit f4b970c

Please sign in to comment.