Skip to content

Commit

Permalink
fix_: unit tests for router
Browse files Browse the repository at this point in the history
Signed-off-by: Brian Sztamfater <[email protected]>
  • Loading branch information
briansztamfater committed Jan 10, 2025
1 parent 1ea4f0f commit c587844
Show file tree
Hide file tree
Showing 5 changed files with 790 additions and 136 deletions.
4 changes: 2 additions & 2 deletions api/default_networks.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func base(stageName string) params.Network {
FallbackURL: "https://base-archival.rpc.grove.city/v1/",
BlockExplorerURL: "https://basescan.org",
IconURL: "network/Network=Base",
ChainColor: "#E90101",
ChainColor: "#0052FF",
ShortName: "base",
NativeCurrencyName: "Ether",
NativeCurrencySymbol: "ETH",
Expand All @@ -150,7 +150,7 @@ func baseSepolia(stageName string) params.Network {
FallbackURL: "https://base-sepolia-archival.rpc.grove.city/v1/",
BlockExplorerURL: "https://sepolia.basescan.org/",
IconURL: "network/Network=Base",
ChainColor: "#E90101",
ChainColor: "#0052FF",
ShortName: "base",
NativeCurrencyName: "Ether",
NativeCurrencySymbol: "ETH",
Expand Down
4 changes: 2 additions & 2 deletions api/default_networks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func TestBuildDefaultNetworks(t *testing.T) {

actualNetworks := BuildDefaultNetworks(&request.WalletSecretsConfig)

require.Len(t, actualNetworks, 6)
require.Len(t, actualNetworks, 8)

for _, n := range actualNetworks {
var err error
Expand Down Expand Up @@ -65,7 +65,7 @@ func TestBuildDefaultNetworksGanache(t *testing.T) {

actualNetworks := BuildDefaultNetworks(&request.WalletSecretsConfig)

require.Len(t, actualNetworks, 6)
require.Len(t, actualNetworks, 8)

for _, n := range actualNetworks {
require.True(t, strings.Contains(n.RPCURL, ganacheURL))
Expand Down
2 changes: 0 additions & 2 deletions contracts/community-tokens/deployer/address.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@ var contractAddressByChainID = map[uint64]common.Address{
1: common.HexToAddress("0xB3Ef5B0825D5f665bE14394eea41E684CE96A4c5"), // Mainnet
10: common.HexToAddress("0x31463D22750324C8721FF7751584EF62F2ff93b3"), // Optimism
42161: common.HexToAddress("0x744Fd6e98dad09Fb8CCF530B5aBd32B56D64943b"), // Arbitrum
8453: common.HexToAddress(""), // Base
11155111: common.HexToAddress("0xCDE984e57cdb88c70b53437cc694345B646371f9"), // Sepolia
421614: common.HexToAddress("0x7Ff554af5b6624db2135E4364F416d1D397f43e6"), // Arbitrum Sepolia
11155420: common.HexToAddress("0xcE2A896eEA2F585BC0C3753DC8116BbE2AbaE541"), // Optimism Sepolia
84532: common.HexToAddress(""), // Base Sepolia
}

func ContractAddress(chainID uint64) (common.Address, error) {
Expand Down
Loading

0 comments on commit c587844

Please sign in to comment.