From 95e93ca3dd872e857212947977b70c56de7e233d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Negovanovi=C4=87?= Date: Wed, 18 Dec 2024 19:12:58 +0100 Subject: [PATCH] fix: bridge balance logs --- l1infotreesync/e2e_test.go | 3 --- test/helpers/simulated.go | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/l1infotreesync/e2e_test.go b/l1infotreesync/e2e_test.go index 7d78a5d0..7b5c7be8 100644 --- a/l1infotreesync/e2e_test.go +++ b/l1infotreesync/e2e_test.go @@ -199,7 +199,6 @@ func TestWithReorgs(t *testing.T) { require.NoError(t, err) actualRollupExitRoot, err := syncer.GetLastRollupExitRoot(ctx) require.NoError(t, err) - t.Log("exit roots", common.Hash(expectedRollupExitRoot), actualRollupExitRoot.Hash) require.Equal(t, common.Hash(expectedRollupExitRoot), actualRollupExitRoot.Hash) // Assert L1 Info tree root @@ -230,7 +229,6 @@ func TestWithReorgs(t *testing.T) { require.NoError(t, err) actualRollupExitRoot, err = syncer.GetLastRollupExitRoot(ctx) require.ErrorContains(t, err, "not found") // rollup exit tree reorged, it does not have any exits in it - t.Log("exit roots", common.Hash(expectedRollupExitRoot), actualRollupExitRoot.Hash) require.Equal(t, common.Hash(expectedRollupExitRoot), actualRollupExitRoot.Hash) // Forking from block 3 again @@ -252,7 +250,6 @@ func TestWithReorgs(t *testing.T) { require.NoError(t, err) actualRollupExitRoot, err = syncer.GetLastRollupExitRoot(ctx) require.NoError(t, err) - t.Log("exit roots", common.Hash(expectedRollupExitRoot), actualRollupExitRoot.Hash) require.Equal(t, common.Hash(expectedRollupExitRoot), actualRollupExitRoot.Hash) } diff --git a/test/helpers/simulated.go b/test/helpers/simulated.go index b021d776..e9f0a555 100644 --- a/test/helpers/simulated.go +++ b/test/helpers/simulated.go @@ -7,6 +7,7 @@ import ( "testing" "github.com/0xPolygon/cdk-contracts-tooling/contracts/l2-sovereign-chain-paris/polygonzkevmbridgev2" + "github.com/0xPolygon/cdk/log" "github.com/0xPolygon/cdk/test/contracts/transparentupgradableproxy" "github.com/ethereum/go-ethereum/accounts/abi/bind" "github.com/ethereum/go-ethereum/common" @@ -111,7 +112,7 @@ func (s *SimulatedBackendSetup) DeployBridge(client *simulated.Backend, return err } - fmt.Printf("Bridge balance (%s)=%d\n", bridgeProxyAddr, bridgeBalance) + log.Debugf("Bridge@%s, balance=%d\n", bridgeProxyAddr, bridgeBalance) return nil }