@@ -1058,7 +1058,7 @@ func TestEIP155Transition(t *testing.T) {
10581058 funds = big .NewInt (1000000000 )
10591059 deleteAddr = common.Address {1 }
10601060 gspec = & Genesis {
1061- Config : & params.ChainConfig {ChainId : big .NewInt (1 ), EIP150Block : big .NewInt (0 ), EIP155Block : big .NewInt (2 ), HomesteadBlock : new (big.Int )},
1061+ Config : & params.ChainConfig {ChainID : big .NewInt (1 ), EIP150Block : big .NewInt (0 ), EIP155Block : big .NewInt (2 ), HomesteadBlock : new (big.Int )},
10621062 Alloc : types.GenesisAlloc {address : {Balance : funds }, deleteAddr : {Balance : new (big.Int )}},
10631063 }
10641064 genesis = gspec .MustCommit (db )
@@ -1129,7 +1129,7 @@ func TestEIP155Transition(t *testing.T) {
11291129 }
11301130
11311131 // generate an invalid chain id transaction
1132- config := & params.ChainConfig {ChainId : big .NewInt (2 ), EIP150Block : big .NewInt (0 ), EIP155Block : big .NewInt (2 ), HomesteadBlock : new (big.Int )}
1132+ config := & params.ChainConfig {ChainID : big .NewInt (2 ), EIP150Block : big .NewInt (0 ), EIP155Block : big .NewInt (2 ), HomesteadBlock : new (big.Int )}
11331133 blocks , _ = GenerateChain (config , blocks [len (blocks )- 1 ], ethash .NewFaker (), db , 4 , func (i int , block * BlockGen ) {
11341134 var (
11351135 tx * types.Transaction
@@ -1162,7 +1162,7 @@ func TestEIP161AccountRemoval(t *testing.T) {
11621162 theAddr = common.Address {1 }
11631163 gspec = & Genesis {
11641164 Config : & params.ChainConfig {
1165- ChainId : big .NewInt (1 ),
1165+ ChainID : big .NewInt (1 ),
11661166 HomesteadBlock : new (big.Int ),
11671167 EIP155Block : new (big.Int ),
11681168 EIP158Block : big .NewInt (2 ),
@@ -1600,7 +1600,7 @@ func TestEIP2718Transition(t *testing.T) {
16001600 funds = big .NewInt (1000000000000000 )
16011601 gspec = & Genesis {
16021602 Config : & params.ChainConfig {
1603- ChainId : new (big.Int ).SetBytes ([]byte ("eip1559" )),
1603+ ChainID : new (big.Int ).SetBytes ([]byte ("eip1559" )),
16041604 HomesteadBlock : big .NewInt (0 ),
16051605 DAOForkBlock : nil ,
16061606 DAOForkSupport : true ,
@@ -1637,7 +1637,7 @@ func TestEIP2718Transition(t *testing.T) {
16371637 // One transaction to 0xAAAA
16381638 signer := types .LatestSigner (gspec .Config )
16391639 tx , _ := types .SignNewTx (key , signer , & types.AccessListTx {
1640- ChainID : gspec .Config .ChainId ,
1640+ ChainID : gspec .Config .ChainID ,
16411641 Nonce : 0 ,
16421642 To : & aa ,
16431643 Gas : 30000 ,
@@ -1826,7 +1826,7 @@ func TestEIP3651(t *testing.T) {
18261826 b .SetCoinbase (aa )
18271827 // One transaction to Coinbase
18281828 txdata := & types.DynamicFeeTx {
1829- ChainID : gspec .Config .ChainId ,
1829+ ChainID : gspec .Config .ChainID ,
18301830 Nonce : 0 ,
18311831 To : & bb ,
18321832 Gas : 500000 ,
0 commit comments