Contracts: expose charge_storage to chain_extension (#14712)

* Contracts: expose charge_storage to chain_extension

* fix typo

* export Diff
This commit is contained in:
PG Herveou
2023-08-17 15:37:53 +02:00
committed by GitHub
parent ecf8035da6
commit 91d2ac11b3
3 changed files with 10 additions and 2 deletions
@@ -701,6 +701,7 @@ mod tests {
fn gas_meter_mut(&mut self) -> &mut GasMeter<Self::T> {
&mut self.gas_meter
}
fn charge_storage(&mut self, _diff: &crate::storage::meter::Diff) {}
fn append_debug_buffer(&mut self, msg: &str) -> bool {
self.debug_buffer.extend(msg.as_bytes());
true