Skip to content

Commit

Permalink
fix contract step
Browse files Browse the repository at this point in the history
  • Loading branch information
otherview committed Dec 19, 2023
1 parent cb5a26a commit 85b72c2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions testnet/launcher/l1contractdeployer/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,15 @@ func (n *ContractDeployer) RetrieveL1ContractAddresses() (*node.NetworkConfig, e
return nil, err
}

tailSize := "3"
if n.cfg.debugEnabled {
tailSize = "4"
}

logsOptions := types.ContainerLogsOptions{
ShowStdout: true,
ShowStderr: true,
Tail: "4",
Tail: tailSize,
}

// Read the container logs
Expand All @@ -104,7 +109,7 @@ func (n *ContractDeployer) RetrieveL1ContractAddresses() (*node.NetworkConfig, e
fmt.Printf("L2 Deployer output %s\n", output)

lines := strings.Split(output, "\n")

if n.cfg.debugEnabled {
// remove debugger lines
lines = lines[:len(lines)-2]
Expand Down

0 comments on commit 85b72c2

Please sign in to comment.