mirror of
https://github.com/luxfi/evmgpu.git
synced 2026-10-30 16:57:11 +00:00
Formatting only, no behaviour change. Struct field comment alignment and similar. Verified with go build ./... and gofmt -l, which is now empty. Co-authored-by: Hanzo Dev <[email protected]>
28 lines
790 B
Go
28 lines
790 B
Go
package params
|
|
|
|
import (
|
|
"math/big"
|
|
"testing"
|
|
)
|
|
|
|
func TestLocalNetworkChainID(t *testing.T) {
|
|
// Test that all test configurations use chain ID 1337 for local networks
|
|
testConfigs := map[string]*ChainConfig{
|
|
"TestChainConfig": TestChainConfig,
|
|
"TestPreEVMChainConfig": TestPreEVMChainConfig,
|
|
"TestEVMChainConfig": TestEVMChainConfig,
|
|
"TestDurangoChainConfig": TestDurangoChainConfig,
|
|
"TestQuasarChainConfig": TestQuasarChainConfig,
|
|
"TestFortunaChainConfig": TestFortunaChainConfig,
|
|
"TestGraniteChainConfig": TestGraniteChainConfig,
|
|
}
|
|
|
|
expectedChainID := big.NewInt(1337)
|
|
|
|
for name, config := range testConfigs {
|
|
if config.ChainID.Cmp(expectedChainID) != 0 {
|
|
t.Errorf("%s: expected chain ID %s, got %s", name, expectedChainID, config.ChainID)
|
|
}
|
|
}
|
|
}
|