Skip to content

Commit

Permalink
fix: bridge balance logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan-Ethernal committed Dec 18, 2024
1 parent 8becb38 commit 95e93ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 0 additions & 3 deletions l1infotreesync/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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)
}

Expand Down
3 changes: 2 additions & 1 deletion test/helpers/simulated.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 95e93ca

Please sign in to comment.