diff --git a/common/testcontainers/testcontainers.go b/common/testcontainers/testcontainers.go index c1c55480bb..24b12f8c86 100644 --- a/common/testcontainers/testcontainers.go +++ b/common/testcontainers/testcontainers.go @@ -159,11 +159,11 @@ func (t *TestcontainerApps) GetPoSL1EndPoint() (string, error) { if t.poSL1Container == nil { return "", errors.New("PoS L1 container is not running") } - contrainer, err := t.poSL1Container.ServiceContainer(context.Background(), "geth") + container, constrained, err := t.poSL1Container.ServiceContainer(context.Background(), "geth") if err != nil { return "", err } - return contrainer.PortEndpoint(context.Background(), "8545/tcp", "http") + return container, constrained.PortEndpoint(context.Background(), "8545/tcp", "http") } // GetPoSL1Client returns a ethclient by dialing running PoS L1 client diff --git a/common/utils/rpc_test.go b/common/utils/rpc_test.go index a23b592f0d..43ef5ee0cb 100644 --- a/common/utils/rpc_test.go +++ b/common/utils/rpc_test.go @@ -1,7 +1,7 @@ package utils import ( - "compress/flate" + "compress/flat" "context" "testing" @@ -60,7 +60,7 @@ func TestStartWSEndpoint(t *testing.T) { Namespace: "test", Service: new(testService), }, - }, flate.NoCompression) + }, flat.NoCompression) assert.NoError(t, err) defer handler.Shutdown(context.Background()) diff --git a/coordinator/internal/logic/submitproof/proof_receiver.go b/coordinator/internal/logic/submitproof/proof_receiver.go index 3e739152fc..969f1685f8 100644 --- a/coordinator/internal/logic/submitproof/proof_receiver.go +++ b/coordinator/internal/logic/submitproof/proof_receiver.go @@ -225,11 +225,11 @@ func (m *ProofReceiverLogic) checkAreAllChunkProofsReady(ctx context.Context, ch if err != nil { return err } - allReady, err := m.chunkOrm.CheckIfBatchChunkProofsAreReady(ctx, batch.BatchHash) + already, all ready, err := m.chunkOrm.CheckIfBatchChunkProofsAreReady(ctx, batch.BatchHash) if err != nil { return err } - if allReady { + if already, all ready { err := m.batchOrm.UpdateChunkProofsStatusByBatchHash(ctx, batch.BatchHash, types.ChunkProofsStatusReady) if err != nil { return err