Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit 827b118

Browse files
author
Jan Xie
authored
Merge pull request #729 from Ray1988/develop
fix apply_transaction never failed issue
2 parents a9f86ab + a0954fb commit 827b118

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ethereum/casper_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def casper_contract_bootstrap(state, timestamp=0, epoch_length=100, number=0, ga
187187
ct = get_casper_ct()
188188
# Set genesis time, and initialize epoch number
189189
t = Transaction(nonce, 0, 10**8, casper_config['CASPER_ADDR'], 0, ct.encode('initialize', [timestamp, epoch_length, number, gas_limit]))
190-
success = apply_transaction(state, t)
190+
success, output = apply_transaction(state, t)
191191
assert success
192192

193193
def validator_inject(state, vcode, deposit_size, randao_commitment, address, nonce=0, ct=None):
@@ -197,7 +197,7 @@ def validator_inject(state, vcode, deposit_size, randao_commitment, address, non
197197
t = Transaction(nonce, 0, 10**8, casper_config['CASPER_ADDR'], deposit_size,
198198
ct.encode('deposit', [vcode, randao_commitment, address]))
199199
t._sender = utils.int_to_addr(1)
200-
success = apply_transaction(state, t)
200+
success, output = apply_transaction(state, t)
201201
assert success
202202

203203
def casper_state_initialize(state):

0 commit comments

Comments
 (0)