diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 08280a1a05..3b42f748e0 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -1371,11 +1371,15 @@ func (s *BundleAPI) CallBundle(ctx context.Context, args CallBundleArgs) (map[st return nil, fmt.Errorf("err: %w; txhash %s", err, randomHash) } to := "0x" - + logs := receipt.Logs + if logs == nil { + logs = []*types.Log{} + } jsonResult := map[string]interface{}{ "txHash": txHash, "gasUsed": receipt.GasUsed, "toAddress": to, + "logs": logs, } totalGasUsed += receipt.GasUsed if result.Err != nil {