Skip to content

Commit

Permalink
fix chain id
Browse files Browse the repository at this point in the history
  • Loading branch information
didaunesp committed Dec 11, 2023
1 parent 7bc8f77 commit c6b1e6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion quaiclient/ethclient/ethclient_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ func newTestBackend(t *testing.T) (*node.Node, []*types.Block) {
func generateTestChain(db ethdb.Database) (*core.Genesis, []*types.Block) {
config := params.TestChainConfig
config.Location = common.Location{0, 0}
config.ChainID = big.NewInt(1)

genesis := &core.Genesis{
Config: config,
Expand Down Expand Up @@ -398,7 +399,7 @@ func testChainID(t *testing.T, client *rpc.Client) {
if err != nil {
t.Fatalf("unexpected error: %v", err)
}
if id == nil || id.Cmp(params.AllProgpowProtocolChanges.ChainID) != 0 {
if id == nil || id.Cmp(big.NewInt(1)) != 0 {
t.Fatalf("ChainID returned wrong number: %+v", id)
}
}
Expand Down

0 comments on commit c6b1e6f

Please sign in to comment.