fixed checking address existance in externalities call callback

This commit is contained in:
debris 2016-01-12 13:54:54 +01:00
parent a2ae5d39fa
commit f7af71e272

View File

@ -367,7 +367,7 @@ impl<'a> Ext for Externalities<'a> {
let mut call_gas = call_gas; let mut call_gas = call_gas;
let is_call = receive_address == code_address; let is_call = receive_address == code_address;
if is_call && self.state.code(&code_address).is_none() { if is_call && !self.state.exists(&code_address) {
gas_cost = gas_cost + self.schedule.call_new_account_gas as u64; gas_cost = gas_cost + self.schedule.call_new_account_gas as u64;
} }