Skip to content

Commit

Permalink
Merge branch 'main' into tt_1546_add_back_chain_id
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofel committed Sep 12, 2024
2 parents bd09380 + a5e921a commit a52c087
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
18 changes: 16 additions & 2 deletions lib/networks/known_networks.go
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,8 @@ var (
Timeout: blockchain.StrDuration{Duration: 3 * time.Minute},
MinimumConfirmations: 1,
GasEstimationBuffer: 0,
FinalityDepth: 400,
DefaultGasLimit: 6000000,
}

ScrollMainnet = blockchain.EVMNetwork{
Expand All @@ -524,6 +526,8 @@ var (
Timeout: blockchain.StrDuration{Duration: 3 * time.Minute},
MinimumConfirmations: 1,
GasEstimationBuffer: 0,
FinalityDepth: 400,
DefaultGasLimit: 6000000,
}

CeloAlfajores = blockchain.EVMNetwork{
Expand Down Expand Up @@ -615,6 +619,8 @@ var (
Timeout: blockchain.StrDuration{Duration: 3 * time.Minute},
MinimumConfirmations: 0,
GasEstimationBuffer: 1000,
FinalityDepth: 200,
DefaultGasLimit: 6000000,
}

LineaMainnet blockchain.EVMNetwork = blockchain.EVMNetwork{
Expand All @@ -627,6 +633,8 @@ var (
Timeout: blockchain.StrDuration{Duration: 3 * time.Minute},
MinimumConfirmations: 1,
GasEstimationBuffer: 1000,
FinalityDepth: 200,
DefaultGasLimit: 6000000,
}

PolygonZkEvmGoerli = blockchain.EVMNetwork{
Expand All @@ -651,6 +659,8 @@ var (
Timeout: blockchain.StrDuration{Duration: time.Minute},
MinimumConfirmations: 0,
GasEstimationBuffer: 1000,
FinalityTag: true,
DefaultGasLimit: 8000000,
}

PolygonZkEvmCardona = blockchain.EVMNetwork{
Expand All @@ -663,6 +673,8 @@ var (
Timeout: blockchain.StrDuration{Duration: time.Minute},
MinimumConfirmations: 0,
GasEstimationBuffer: 1000,
FinalityTag: true,
DefaultGasLimit: 8000000,
}

WeMixTestnet blockchain.EVMNetwork = blockchain.EVMNetwork{
Expand Down Expand Up @@ -964,6 +976,7 @@ var (
Timeout: blockchain.StrDuration{Duration: 3 * time.Minute},
MinimumConfirmations: 1,
GasEstimationBuffer: 10000,
FinalityTag: true,
DefaultGasLimit: 6000000,
}

Expand All @@ -977,6 +990,7 @@ var (
Timeout: blockchain.StrDuration{Duration: 3 * time.Minute},
MinimumConfirmations: 1,
GasEstimationBuffer: 10000,
FinalityTag: true,
DefaultGasLimit: 6000000,
}

Expand Down Expand Up @@ -1059,8 +1073,8 @@ var (
"ASTAR_SHIBUYA": AstarShibuya,
"ASTAR_MAINNET": AstarMainnet,
"HEDERA_TESTNET": HederaTestnet,
"X_LAYER_SEPOLIA": XLayerSepolia,
"X_LAYER_MAINNET": XLayerMainnet,
"XLAYER_SEPOLIA": XLayerSepolia,
"XLAYER_MAINNET": XLayerMainnet,
"TREASURE_RUBY": TreasureRuby,
}
)
Expand Down
2 changes: 1 addition & 1 deletion seth/client_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ func (c *ClientBuilder) BuildConfig() (*Config, error) {
for _, err := range c.errors {
concatenatedErrors = fmt.Sprintf("%s\n%s", concatenatedErrors, err.Error())
}
return nil, fmt.Errorf("errors occurred during building the config: %s", concatenatedErrors)
return nil, fmt.Errorf("errors occurred during building the config:%s", concatenatedErrors)
}
return c.config, nil
}
Expand Down

0 comments on commit a52c087

Please sign in to comment.