Skip to content

Commit

Permalink
Fix address contract log
Browse files Browse the repository at this point in the history
  • Loading branch information
m-bo-one committed Oct 13, 2021
1 parent 0400939 commit abdb320
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action/olvm/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit abdb320

Please sign in to comment.