mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 05:36:46 +00:00
BRG4-10: preserve returned error via wrapping
This commit is contained in:
parent
87efec359f
commit
ac06e7095c
1 changed files with 1 additions and 1 deletions
|
|
@ -228,7 +228,7 @@ func ApplyPoLMessage(msg *Message, evm *vm.EVM) *ExecutionResult {
|
|||
result := &ExecutionResult{}
|
||||
ret, leftOverGas, err := evm.Call(msg.From, *msg.To, msg.Data, msg.GasLimit, common.U2560)
|
||||
if err != nil {
|
||||
result.Err = fmt.Errorf("PoL tx failed to execute: %v", err)
|
||||
result.Err = fmt.Errorf("PoL tx failed to execute: %w", err)
|
||||
}
|
||||
result.ReturnData = ret
|
||||
result.MaxUsedGas = msg.GasLimit - leftOverGas // To inform how much gas was needed to run the msg.
|
||||
|
|
|
|||
Loading…
Reference in a new issue