Skip to content

Commit

Permalink
fix: fix codehash unassigned cause testnet repaly error
Browse files Browse the repository at this point in the history
  • Loading branch information
RootkitKiller committed Jun 13, 2019
1 parent f19dc83 commit e08218a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/chain/contract_evaluator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ void_result contract_update_evaluator::do_evaluate(const contract_update_operati
if(d.head_block_time() > HARDFORK_1015_TIME) {
FC_ASSERT(contract_obj.code.size() > 0, "can not update a normal account: ${a}", ("a", op.contract));
}
code_hash = fc::sha256::hash(op.code);
if (d.head_block_time() < HARDFORK_1024_TIME) {
code_hash = fc::sha256::hash(op.code);
FC_ASSERT(code_hash != contract_obj.code_version, "code not updated");
}

Expand Down

0 comments on commit e08218a

Please sign in to comment.