Bootstrap copied BFF and local accounts with public Sendico contracts (#34)
This commit is contained in:
1 parent
67dc5b5b1e
commit
7062672a87
556 files changed
+42291
-777
No files matched your search
@@ -0,0 +1,33 @@
|
||||
package model
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestChainNetworkArbitrumSepoliaSupport(t *testing.T) {
|
||||
network, ok := ParseChainNetwork("arbitrum_sepolia")
|
||||
if !ok {
|
||||
t.Fatal("ParseChainNetwork(arbitrum_sepolia) returned ok=false")
|
||||
}
|
||||
if network != ChainNetworkArbitrumSepolia {
|
||||
t.Fatalf("ParseChainNetwork(arbitrum_sepolia) = %q, want %q", network, ChainNetworkArbitrumSepolia)
|
||||
}
|
||||
if !network.IsValid() {
|
||||
t.Fatal("ChainNetworkArbitrumSepolia should be valid")
|
||||
}
|
||||
if !network.IsEVM() {
|
||||
t.Fatal("ChainNetworkArbitrumSepolia should be EVM")
|
||||
}
|
||||
if !network.IsTestnet() {
|
||||
t.Fatal("ChainNetworkArbitrumSepolia should be testnet")
|
||||
}
|
||||
|
||||
found := false
|
||||
for _, candidate := range AllChainNetworks() {
|
||||
if candidate == ChainNetworkArbitrumSepolia {
|
||||
found = true
|
||||
break
|
||||
}
|
||||
}
|
||||
if !found {
|
||||
t.Fatal("AllChainNetworks() is missing ChainNetworkArbitrumSepolia")
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user