@@ -25,7 +25,6 @@ import (
2525 "testing"
2626
2727 "github.com/ethereum/go-ethereum/common"
28- "github.com/ethereum/go-ethereum/core/state"
2928 "github.com/ethereum/go-ethereum/core/types"
3029 "github.com/ethereum/go-ethereum/crypto"
3130 "github.com/ethereum/go-ethereum/rlp"
7978 slot0StorageValue ,
8079 })
8180
82- contractAccountAtBlock2 , _ = rlp .EncodeToBytes (state. Account {
81+ contractAccountAtBlock2 , _ = rlp .EncodeToBytes (types. StateAccount {
8382 Nonce : 1 ,
8483 Balance : big .NewInt (0 ),
8584 CodeHash : common .HexToHash ("0xaaea5efba4fd7b45d7ec03918ac5d8b31aa93b48986af0e6b591f0f087c80127" ).Bytes (),
8988 common .Hex2Bytes ("3114658a74d9cc9f7acf2c5cd696c3494d7c344d78bfec3add0d91ec4e8d1c45" ),
9089 contractAccountAtBlock2 ,
9190 })
92- contractAccountAtBlock3 , _ = rlp .EncodeToBytes (state. Account {
91+ contractAccountAtBlock3 , _ = rlp .EncodeToBytes (types. StateAccount {
9392 Nonce : 1 ,
9493 Balance : big .NewInt (0 ),
9594 CodeHash : common .HexToHash ("0xaaea5efba4fd7b45d7ec03918ac5d8b31aa93b48986af0e6b591f0f087c80127" ).Bytes (),
9998 common .Hex2Bytes ("3114658a74d9cc9f7acf2c5cd696c3494d7c344d78bfec3add0d91ec4e8d1c45" ),
10099 contractAccountAtBlock3 ,
101100 })
102- contractAccountAtBlock4 , _ = rlp .EncodeToBytes (state. Account {
101+ contractAccountAtBlock4 , _ = rlp .EncodeToBytes (types. StateAccount {
103102 Nonce : 1 ,
104103 Balance : big .NewInt (0 ),
105104 CodeHash : common .HexToHash ("0xaaea5efba4fd7b45d7ec03918ac5d8b31aa93b48986af0e6b591f0f087c80127" ).Bytes (),
@@ -109,7 +108,7 @@ var (
109108 common .Hex2Bytes ("3114658a74d9cc9f7acf2c5cd696c3494d7c344d78bfec3add0d91ec4e8d1c45" ),
110109 contractAccountAtBlock4 ,
111110 })
112- contractAccountAtBlock5 , _ = rlp .EncodeToBytes (state. Account {
111+ contractAccountAtBlock5 , _ = rlp .EncodeToBytes (types. StateAccount {
113112 Nonce : 1 ,
114113 Balance : big .NewInt (0 ),
115114 CodeHash : common .HexToHash ("0xaaea5efba4fd7b45d7ec03918ac5d8b31aa93b48986af0e6b591f0f087c80127" ).Bytes (),
@@ -120,7 +119,7 @@ var (
120119 contractAccountAtBlock5 ,
121120 })
122121
123- minerAccountAtBlock1 , _ = rlp .EncodeToBytes (state. Account {
122+ minerAccountAtBlock1 , _ = rlp .EncodeToBytes (types. StateAccount {
124123 Nonce : 0 ,
125124 Balance : big .NewInt (2000002625000000000 ),
126125 CodeHash : testhelpers .NullCodeHash .Bytes (),
@@ -130,7 +129,7 @@ var (
130129 common .Hex2Bytes ("3380c7b7ae81a58eb98d9c78de4a1fd7fd9535fc953ed2be602daaa41767312a" ),
131130 minerAccountAtBlock1 ,
132131 })
133- minerAccountAtBlock2 , _ = rlp .EncodeToBytes (state. Account {
132+ minerAccountAtBlock2 , _ = rlp .EncodeToBytes (types. StateAccount {
134133 Nonce : 0 ,
135134 Balance : big .NewInt (4000111203461610525 ),
136135 CodeHash : testhelpers .NullCodeHash .Bytes (),
@@ -141,7 +140,7 @@ var (
141140 minerAccountAtBlock2 ,
142141 })
143142
144- account1AtBlock1 , _ = rlp .EncodeToBytes (state. Account {
143+ account1AtBlock1 , _ = rlp .EncodeToBytes (types. StateAccount {
145144 Nonce : 0 ,
146145 Balance : testhelpers .Block1Account1Balance ,
147146 CodeHash : testhelpers .NullCodeHash .Bytes (),
@@ -151,7 +150,7 @@ var (
151150 common .Hex2Bytes ("3926db69aaced518e9b9f0f434a473e7174109c943548bb8f23be41ca76d9ad2" ),
152151 account1AtBlock1 ,
153152 })
154- account1AtBlock2 , _ = rlp .EncodeToBytes (state. Account {
153+ account1AtBlock2 , _ = rlp .EncodeToBytes (types. StateAccount {
155154 Nonce : 2 ,
156155 Balance : big .NewInt (999555797000009000 ),
157156 CodeHash : testhelpers .NullCodeHash .Bytes (),
@@ -161,7 +160,7 @@ var (
161160 common .Hex2Bytes ("3926db69aaced518e9b9f0f434a473e7174109c943548bb8f23be41ca76d9ad2" ),
162161 account1AtBlock2 ,
163162 })
164- account1AtBlock5 , _ = rlp .EncodeToBytes (state. Account {
163+ account1AtBlock5 , _ = rlp .EncodeToBytes (types. StateAccount {
165164 Nonce : 2 ,
166165 Balance : big .NewInt (2999566008847709960 ),
167166 CodeHash : testhelpers .NullCodeHash .Bytes (),
@@ -171,7 +170,7 @@ var (
171170 common .Hex2Bytes ("3926db69aaced518e9b9f0f434a473e7174109c943548bb8f23be41ca76d9ad2" ),
172171 account1AtBlock5 ,
173172 })
174- account1AtBlock6 , _ = rlp .EncodeToBytes (state. Account {
173+ account1AtBlock6 , _ = rlp .EncodeToBytes (types. StateAccount {
175174 Nonce : 3 ,
176175 Balance : big .NewInt (2999537516847709960 ),
177176 CodeHash : testhelpers .NullCodeHash .Bytes (),
@@ -182,7 +181,7 @@ var (
182181 account1AtBlock6 ,
183182 })
184183
185- account2AtBlock2 , _ = rlp .EncodeToBytes (state. Account {
184+ account2AtBlock2 , _ = rlp .EncodeToBytes (types. StateAccount {
186185 Nonce : 0 ,
187186 Balance : big .NewInt (1000 ),
188187 CodeHash : testhelpers .NullCodeHash .Bytes (),
@@ -192,7 +191,7 @@ var (
192191 common .Hex2Bytes ("3957f3e2f04a0764c3a0491b175f69926da61efbcc8f61fa1455fd2d2b4cdd45" ),
193192 account2AtBlock2 ,
194193 })
195- account2AtBlock3 , _ = rlp .EncodeToBytes (state. Account {
194+ account2AtBlock3 , _ = rlp .EncodeToBytes (types. StateAccount {
196195 Nonce : 0 ,
197196 Balance : big .NewInt (2000013574009435976 ),
198197 CodeHash : testhelpers .NullCodeHash .Bytes (),
@@ -202,7 +201,7 @@ var (
202201 common .Hex2Bytes ("3957f3e2f04a0764c3a0491b175f69926da61efbcc8f61fa1455fd2d2b4cdd45" ),
203202 account2AtBlock3 ,
204203 })
205- account2AtBlock4 , _ = rlp .EncodeToBytes (state. Account {
204+ account2AtBlock4 , _ = rlp .EncodeToBytes (types. StateAccount {
206205 Nonce : 0 ,
207206 Balance : big .NewInt (4000048088163070348 ),
208207 CodeHash : testhelpers .NullCodeHash .Bytes (),
@@ -212,7 +211,7 @@ var (
212211 common .Hex2Bytes ("3957f3e2f04a0764c3a0491b175f69926da61efbcc8f61fa1455fd2d2b4cdd45" ),
213212 account2AtBlock4 ,
214213 })
215- account2AtBlock6 , _ = rlp .EncodeToBytes (state. Account {
214+ account2AtBlock6 , _ = rlp .EncodeToBytes (types. StateAccount {
216215 Nonce : 0 ,
217216 Balance : big .NewInt (6000063293259748636 ),
218217 CodeHash : testhelpers .NullCodeHash .Bytes (),
@@ -223,7 +222,7 @@ var (
223222 account2AtBlock6 ,
224223 })
225224
226- bankAccountAtBlock0 , _ = rlp .EncodeToBytes (state. Account {
225+ bankAccountAtBlock0 , _ = rlp .EncodeToBytes (types. StateAccount {
227226 Nonce : 0 ,
228227 Balance : big .NewInt (testhelpers .TestBankFunds .Int64 ()),
229228 CodeHash : testhelpers .NullCodeHash .Bytes (),
@@ -235,7 +234,7 @@ var (
235234 })
236235
237236 block1BankBalance = big .NewInt (testhelpers .TestBankFunds .Int64 () - testhelpers .BalanceChange10000 - testhelpers .GasFees )
238- bankAccountAtBlock1 , _ = rlp .EncodeToBytes (state. Account {
237+ bankAccountAtBlock1 , _ = rlp .EncodeToBytes (types. StateAccount {
239238 Nonce : 1 ,
240239 Balance : block1BankBalance ,
241240 CodeHash : testhelpers .NullCodeHash .Bytes (),
@@ -247,7 +246,7 @@ var (
247246 })
248247
249248 block2BankBalance = block1BankBalance .Int64 () - testhelpers .BalanceChange1Ether - testhelpers .GasFees
250- bankAccountAtBlock2 , _ = rlp .EncodeToBytes (state. Account {
249+ bankAccountAtBlock2 , _ = rlp .EncodeToBytes (types. StateAccount {
251250 Nonce : 2 ,
252251 Balance : big .NewInt (block2BankBalance ),
253252 CodeHash : testhelpers .NullCodeHash .Bytes (),
@@ -257,7 +256,7 @@ var (
257256 common .Hex2Bytes ("30bf49f440a1cd0527e4d06e2765654c0f56452257516d793a9b8d604dcfdf2a" ),
258257 bankAccountAtBlock2 ,
259258 })
260- bankAccountAtBlock3 , _ = rlp .EncodeToBytes (state. Account {
259+ bankAccountAtBlock3 , _ = rlp .EncodeToBytes (types. StateAccount {
261260 Nonce : 3 ,
262261 Balance : big .NewInt (999914255999990000 ),
263262 CodeHash : testhelpers .NullCodeHash .Bytes (),
@@ -267,7 +266,7 @@ var (
267266 common .Hex2Bytes ("30bf49f440a1cd0527e4d06e2765654c0f56452257516d793a9b8d604dcfdf2a" ),
268267 bankAccountAtBlock3 ,
269268 })
270- bankAccountAtBlock4 , _ = rlp .EncodeToBytes (state. Account {
269+ bankAccountAtBlock4 , _ = rlp .EncodeToBytes (types. StateAccount {
271270 Nonce : 6 ,
272271 Balance : big .NewInt (999826859999990000 ),
273272 CodeHash : testhelpers .NullCodeHash .Bytes (),
@@ -277,7 +276,7 @@ var (
277276 common .Hex2Bytes ("30bf49f440a1cd0527e4d06e2765654c0f56452257516d793a9b8d604dcfdf2a" ),
278277 bankAccountAtBlock4 ,
279278 })
280- bankAccountAtBlock5 , _ = rlp .EncodeToBytes (state. Account {
279+ bankAccountAtBlock5 , _ = rlp .EncodeToBytes (types. StateAccount {
281280 Nonce : 7 ,
282281 Balance : big .NewInt (999805027999990000 ),
283282 CodeHash : testhelpers .NullCodeHash .Bytes (),
@@ -1727,7 +1726,7 @@ var (
17271726 slot00StorageValue ,
17281727 })
17291728
1730- contractAccountAtBlock01 , _ = rlp .EncodeToBytes (state. Account {
1729+ contractAccountAtBlock01 , _ = rlp .EncodeToBytes (types. StateAccount {
17311730 Nonce : 1 ,
17321731 Balance : big .NewInt (0 ),
17331732 CodeHash : common .HexToHash ("0xaaea5efba4fd7b45d7ec03918ac5d8b31aa93b48986af0e6b591f0f087c80127" ).Bytes (),
@@ -1738,7 +1737,7 @@ var (
17381737 contractAccountAtBlock01 ,
17391738 })
17401739
1741- bankAccountAtBlock01 , _ = rlp .EncodeToBytes (state. Account {
1740+ bankAccountAtBlock01 , _ = rlp .EncodeToBytes (types. StateAccount {
17421741 Nonce : 1 ,
17431742 Balance : big .NewInt (3999629697375000000 ),
17441743 CodeHash : testhelpers .NullCodeHash .Bytes (),
@@ -1748,7 +1747,7 @@ var (
17481747 common .Hex2Bytes ("30bf49f440a1cd0527e4d06e2765654c0f56452257516d793a9b8d604dcfdf2a" ),
17491748 bankAccountAtBlock01 ,
17501749 })
1751- bankAccountAtBlock02 , _ = rlp .EncodeToBytes (state. Account {
1750+ bankAccountAtBlock02 , _ = rlp .EncodeToBytes (types. StateAccount {
17521751 Nonce : 2 ,
17531752 Balance : big .NewInt (5999607323457344852 ),
17541753 CodeHash : testhelpers .NullCodeHash .Bytes (),
0 commit comments