Skip to content

Commit 166d5f3

Browse files
Apply suggestions from code review
Co-authored-by: Justin Traglia <[email protected]>
1 parent ab7cdb9 commit 166d5f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/core/pyspec/eth2spec/test/helpers/multi_operations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def get_random_deposits_requests(spec, state, rng, num_deposits=None):
291291
deposit_data_leaves,
292292
pubkeys[index],
293293
privkeys[index],
294-
rng.randint(spec.MIN_ACTIVATION_BALANCE, spec.MAX_EFFECTIVE_BALANCE_ELECTRA),
294+
rng.randint(spec.EFFECTIVE_BALANCE_INCREMENT, 2 * spec.MAX_EFFECTIVE_BALANCE_ELECTRA),
295295
withdrawal_credentials=withdrawal_credentials,
296296
signed=True,
297297
)
@@ -303,6 +303,7 @@ def get_random_deposits_requests(spec, state, rng, num_deposits=None):
303303
signature=deposit.data.signature,
304304
index=deposit.data.index,
305305
)
306+
306307
deposits_requests.append(deposit_request)
307308

308309
return deposits_requests
@@ -352,7 +353,6 @@ def get_random_consolidations_requests(spec, state, rng, num_consolidations=None
352353
active_validator_indices = spec.get_active_validator_indices(state, current_epoch)
353354

354355
for _ in range(num_consolidations):
355-
356356
source_address = rng.getrandbits(160).to_bytes(20, 'big')
357357

358358
source_index = rng.choice(active_validator_indices)

0 commit comments

Comments
 (0)