From abdb320a742e0f56de455814cfb8067c9933afff Mon Sep 17 00:00:00 2001 From: DeV1doR Date: Wed, 13 Oct 2021 23:25:41 +0300 Subject: [PATCH] Fix address contract log --- action/olvm/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action/olvm/handler.go b/action/olvm/handler.go index 5b33f9877..31a73647f 100644 --- a/action/olvm/handler.go +++ b/action/olvm/handler.go @@ -325,7 +325,7 @@ func runOLVM(ctx *action.Context, rawTx action.RawTx) (bool, action.Response) { } tags = responseLogs(tags, ethtypes.ReceiptStatusSuccessful, nil) - if len(execResult.ContractAddress.Bytes()) > 0 { + if execResult.ContractAddress != (ethcmn.Address{}) { ctx.Logger.Detailf("Contract created: %s\n", execResult.ContractAddress) tags = append(tags, kv.Pair{ Key: []byte("tx.contract"),