diff --git a/fvm/evm/handler/handler.go b/fvm/evm/handler/handler.go index 861d8dec88c..dd54f224408 100644 --- a/fvm/evm/handler/handler.go +++ b/fvm/evm/handler/handler.go @@ -300,11 +300,6 @@ func (h *ContractHandler) executeAndHandleCall( bp.AppendTxHash(res.TxHash) // TODO: in the future we might update the receipt hash here - blockHash, err := bp.Hash() - if err != nil { - return res, err - } - if totalSupplyDiff != nil { if deductSupplyDiff { bp.TotalSupply = new(big.Int).Sub(bp.TotalSupply, totalSupplyDiff) @@ -316,6 +311,11 @@ func (h *ContractHandler) executeAndHandleCall( } } + blockHash, err := bp.Hash() + if err != nil { + return res, err + } + // emit events encoded, err := call.Encode() if err != nil {