@@ -56,13 +56,12 @@ func TestGethEth1(t *testing.T) {
5656 require .NoError (t , err , "Couldn't close the client" )
5757}
5858
59- func TestGethEth2_Deneb (t * testing.T ) {
59+ func TestGethEth2 (t * testing.T ) {
6060 l := logging .GetTestLogger (t )
6161
6262 builder := NewEthereumNetworkBuilder ()
6363 cfg , err := builder .
64- WithCustomDockerImages (map [config.ContainerType ]string {config .ContainerType_ExecutionLayer : "ethereum/client-go:v1.13.12" }).
65- WithConsensusLayer (config .ConsensusLayer_Prysm ).
64+ WithEthereumVersion (config_types .EthereumVersion_Eth2 ).
6665 WithExecutionLayer (config_types .ExecutionLayer_Geth ).
6766 Build ()
6867 require .NoError (t , err , "Builder validation failed" )
@@ -85,29 +84,15 @@ func TestGethEth2_Deneb(t *testing.T) {
8584 address := common .HexToAddress ("0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1" )
8685 err = sendAndCompareBalances (ctx , clientOne , address )
8786 require .NoError (t , err , fmt .Sprintf ("balance wasn't correctly updated for %s network" , nonEip1559Network .Name ))
88-
89- eip1559Network := blockchain .SimulatedEVMNetwork
90- eip1559Network .Name = "Simulated Geth + Prysm (EIP 1559)"
91- eip1559Network .SupportsEIP1559 = true
92- eip1559Network .URLs = eth2 .PublicWsUrls ()
93- clientTwo , err := blockchain .ConnectEVMClient (eip1559Network , l )
94- require .NoError (t , err , "Couldn't connect to the evm client" )
95-
96- t .Cleanup (func () {
97- err = clientTwo .Close ()
98- require .NoError (t , err , "Couldn't close the client" )
99- })
100-
101- err = sendAndCompareBalances (ctx , clientTwo , address )
102- require .NoError (t , err , fmt .Sprintf ("balance wasn't correctly updated for %s network" , eip1559Network .Name ))
10387}
10488
105- func TestGethEth2_Shanghai_No_Fork_Setup (t * testing.T ) {
89+ func TestGethEth2_Deneb (t * testing.T ) {
10690 l := logging .GetTestLogger (t )
10791
10892 builder := NewEthereumNetworkBuilder ()
10993 cfg , err := builder .
110- WithCustomDockerImages (map [config.ContainerType ]string {config .ContainerType_ExecutionLayer : "ethereum/client-go:v1.13.11" }).
94+ WithCustomDockerImages (map [config.ContainerType ]string {config .ContainerType_ExecutionLayer : "ethereum/client-go:v1.13.12" }).
95+ WithConsensusLayer (config .ConsensusLayer_Prysm ).
11196 WithExecutionLayer (config_types .ExecutionLayer_Geth ).
11297 Build ()
11398 require .NoError (t , err , "Builder validation failed" )
@@ -130,6 +115,21 @@ func TestGethEth2_Shanghai_No_Fork_Setup(t *testing.T) {
130115 address := common .HexToAddress ("0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1" )
131116 err = sendAndCompareBalances (ctx , clientOne , address )
132117 require .NoError (t , err , fmt .Sprintf ("balance wasn't correctly updated for %s network" , nonEip1559Network .Name ))
118+
119+ eip1559Network := blockchain .SimulatedEVMNetwork
120+ eip1559Network .Name = "Simulated Geth + Prysm (EIP 1559)"
121+ eip1559Network .SupportsEIP1559 = true
122+ eip1559Network .URLs = eth2 .PublicWsUrls ()
123+ clientTwo , err := blockchain .ConnectEVMClient (eip1559Network , l )
124+ require .NoError (t , err , "Couldn't connect to the evm client" )
125+
126+ t .Cleanup (func () {
127+ err = clientTwo .Close ()
128+ require .NoError (t , err , "Couldn't close the client" )
129+ })
130+
131+ err = sendAndCompareBalances (ctx , clientTwo , address )
132+ require .NoError (t , err , fmt .Sprintf ("balance wasn't correctly updated for %s network" , eip1559Network .Name ))
133133}
134134
135135func TestGethEth2_Shanghai (t * testing.T ) {
0 commit comments