Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhorsey committed Dec 6, 2022
1 parent 90a7595 commit 72864f3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
20 changes: 10 additions & 10 deletions packages/bridge-ui/src/domain/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ export type Chain = {

export const CHAIN_MAINNET = {
id: 31336,
name: "Taiko L1",
rpc: "http://34.132.67.34:8545",
name: "Ethereum A1",
rpc: "https://l1rpc.a1.taiko.xyz",
enabled: true,
icon: Eth,
};

export const CHAIN_TKO = {
id: 167001,
name: "Taiko zkEVM",
rpc: "http://rpc.a1.testnet.taiko.xyz",
name: "Taiko A1",
rpc: "https://l2rpc.a1.taiko.xyz",
enabled: true,
icon: Taiko,
};
Expand All @@ -35,16 +35,16 @@ export const chains: Record<string, Chain> = {

export const mainnet: WagmiChain = {
id: 31336,
name: "Taiko L1",
name: "Ethereum A1",
network: "",
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
rpcUrls: {
default: "http://34.132.67.34:8545",
default: "https://l1rpc.a1.taiko.xyz",
},
blockExplorers: {
default: {
name: "Main",
url: "https://34.132.67.34:4000",
url: "https://l1explorer.a1.taiko.xyz",
},
},
ens: {
Expand All @@ -58,16 +58,16 @@ export const mainnet: WagmiChain = {

export const taiko: WagmiChain = {
id: 167001,
name: "Taiko zkEVM",
name: "Taiko A1",
network: "",
nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
rpcUrls: {
default: "http://rpc.a1.testnet.taiko.xyz",
default: "https://l2rpc.a1.taiko.xyz",
},
blockExplorers: {
default: {
name: "Main",
url: "https://a1.testnet.taiko.xyz",
url: "https://l2explorer.a1.taiko.xyz",
},
},
ens: {
Expand Down
18 changes: 9 additions & 9 deletions packages/relayer/cli/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,28 +101,28 @@ func Test_makeIndexers(t *testing.T) {
return nil
},
0,
errors.New("dial unix valid: connect: no such file or directory"),
errors.New("dial unix: missing address"),
},
{
"missingL2RPCUrl",
relayer.Both,
dbFunc,
func() func() {
os.Setenv("L1_RPC_URL", "ws://34.132.67.34:8546")
os.Setenv("L1_RPC_URL", "https://l1rpc.a1.taiko.xyz")
return func() {
os.Setenv("L1_RPC_URL", "")
}
},
0,
errors.New("dial unix valid: connect: no such file or directory"),
errors.New("dial unix: missing address"),
},
{
"successL1",
relayer.L1,
dbFunc,
func() func() {
os.Setenv("L1_RPC_URL", "ws://34.132.67.34:8546")
os.Setenv("L2_RPC_URL", "ws://34.132.67.34:8546")
os.Setenv("L1_RPC_URL", "https://l1rpc.a1.taiko.xyz")
os.Setenv("L2_RPC_URL", "https://l2rpc.a1.taiko.xyz")
os.Setenv("L1_BRIDGE_ADDRESS", dummyAddress)
os.Setenv("L2_BRIDGE_ADDRESS", dummyAddress)
os.Setenv("L1_TAIKO_ADDRESS", dummyAddress)
Expand All @@ -147,8 +147,8 @@ func Test_makeIndexers(t *testing.T) {
relayer.L2,
dbFunc,
func() func() {
os.Setenv("L1_RPC_URL", "ws://34.132.67.34:8546")
os.Setenv("L2_RPC_URL", "ws://34.132.67.34:8546")
os.Setenv("L1_RPC_URL", "https://l1rpc.a1.taiko.xyz")
os.Setenv("L2_RPC_URL", "https://l2rpc.a1.taiko.xyz")
os.Setenv("L1_BRIDGE_ADDRESS", dummyAddress)
os.Setenv("L2_BRIDGE_ADDRESS", dummyAddress)
os.Setenv("L1_TAIKO_ADDRESS", dummyAddress)
Expand All @@ -173,8 +173,8 @@ func Test_makeIndexers(t *testing.T) {
relayer.Both,
dbFunc,
func() func() {
os.Setenv("L1_RPC_URL", "ws://34.132.67.34:8546")
os.Setenv("L2_RPC_URL", "ws://34.132.67.34:8546")
os.Setenv("L1_RPC_URL", "https://l1rpc.a1.taiko.xyz")
os.Setenv("L2_RPC_URL", "https://l2rpc.a1.taiko.xyz")
os.Setenv("L1_BRIDGE_ADDRESS", dummyAddress)
os.Setenv("L2_BRIDGE_ADDRESS", dummyAddress)
os.Setenv("L1_TAIKO_ADDRESS", dummyAddress)
Expand Down

0 comments on commit 72864f3

Please sign in to comment.