Skip to content

Commit

Permalink
fix: ut and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
goran-ethernal committed Oct 28, 2024
1 parent f5cd1f5 commit c8ee26b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
5 changes: 3 additions & 2 deletions aggsender/aggsender.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func (a *AggSender) saveCertificateToFile(signedCertificate *agglayer.SignedCert
a.log.Errorf("error marshalling certificate: %w", err)
}

if err = os.WriteFile(fn, jsonData, 0644); err != nil {
if err = os.WriteFile(fn, jsonData, 0644); err != nil { //nolint:gosec,mnd // we are writing to a tmp file
a.log.Errorf("error writing certificate to file: %w", err)
}
}
Expand Down Expand Up @@ -322,7 +322,8 @@ func (a *AggSender) getImportedBridgeExits(ctx context.Context,

importedBridgeExits = append(importedBridgeExits, ibe)

gerToL1Proof, err := a.l1infoTreeSyncer.GetL1InfoTreeMerkleProofFromIndexToRoot(ctx, l1Info.L1InfoTreeIndex, l1Info.GlobalExitRoot)
gerToL1Proof, err := a.l1infoTreeSyncer.GetL1InfoTreeMerkleProofFromIndexToRoot(ctx,
l1Info.L1InfoTreeIndex, l1Info.GlobalExitRoot)
if err != nil {
return nil, fmt.Errorf("error getting L1 Info tree merkle proof for leaf index: %d. GER: %s. Error: %w",
l1Info.L1InfoTreeIndex, l1Info.GlobalExitRoot, err)
Expand Down
1 change: 0 additions & 1 deletion config/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ L2Coinbase = "0xfa3b44587990f97ba8b6ba7e230a5f0e95d14b3d"
SequencerPrivateKeyPath = "/app/sequencer.keystore"
SequencerPrivateKeyPassword = "test"
WitnessURL = "http://localhost:8123"
AggLayerURL = "https://agglayer-dev.polygon.technology"
AggregatorPrivateKeyPath = "/app/keystore/aggregator.keystore"
AggregatorPrivateKeyPassword = "testonly"
Expand Down
2 changes: 0 additions & 2 deletions test/config/kurtosis-cdk-node-config.toml.template
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ polygonBridgeAddr = "{{.zkevm_bridge_address}}"

RPCURL = "http://{{.l2_rpc_name}}{{.deployment_suffix}}:{{.zkevm_rpc_http_port}}"
WitnessURL = "http://{{.l2_rpc_name}}{{.deployment_suffix}}:{{.zkevm_rpc_http_port}}"
AggLayerURL = "http://agglayer:{{.agglayer_port}}"



# This values can be override directly from genesis.json
Expand Down

0 comments on commit c8ee26b

Please sign in to comment.