s/inc_sstore_clear_count/inc_sstore_clears/g

This commit is contained in:
debris 2016-01-16 17:33:46 +01:00
parent d128d1fccd
commit 1d8d038682
5 changed files with 6 additions and 6 deletions

View File

@ -87,5 +87,5 @@ pub trait Ext {
fn depth(&self) -> usize;
/// Increments sstore refunds count by 1.
fn inc_sstore_clear_count(&mut self);
fn inc_sstore_clears(&mut self);
}

View File

@ -122,7 +122,7 @@ impl<'a> evmjit::Ext for ExtAdapter<'a> {
let old_value = self.ext.storage_at(&key);
// if SSTORE nonzero -> zero, increment refund count
if !old_value.is_zero() && value.is_zero() {
self.ext.inc_sstore_clear_count();
self.ext.inc_sstore_clears();
}
self.ext.set_storage(key, value);
}

View File

@ -91,7 +91,7 @@ impl Ext for FakeExt {
unimplemented!();
}
fn inc_sstore_clear_count(&mut self) {
fn inc_sstore_clears(&mut self) {
unimplemented!();
}
}

View File

@ -220,7 +220,7 @@ impl<'a> Ext for Externalities<'a> {
self.depth
}
fn inc_sstore_clear_count(&mut self) {
fn inc_sstore_clears(&mut self) {
self.substate.sstore_clears_count = self.substate.sstore_clears_count + U256::one();
}
}

View File

@ -140,8 +140,8 @@ impl<'a> Ext for TestExt<'a> {
0
}
fn inc_sstore_clear_count(&mut self) {
self.ext.inc_sstore_clear_count()
fn inc_sstore_clears(&mut self) {
self.ext.inc_sstore_clears()
}
}