Files
evmgpu/params/config_local_test.go
zeekayandHanzo Dev 94b5d3c6d8 gofmt the twelve files that had drifted
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]>
2026-08-28 23:44:38 -07:00

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)
}
}
}