Merge pull request #7110 from paritytech/remove-storage-error

WASM storage_read and storage_write don't return anything
This commit is contained in:
Marek Kotewicz
2017-11-21 20:43:23 +01:00
committed by Tomasz Drwięga
parent aeb43b6af0
commit a8cf4efc91
4 changed files with 24 additions and 24 deletions

View File

@@ -168,7 +168,7 @@ impl<'a, 'b> Runtime<'a, 'b> {
self.ext.set_storage(key, val).map_err(|_| UserTrap::StorageUpdateError)?;
Ok(Some(0i32.into()))
Ok(None)
}
/// Read from the storage to wasm memory
@@ -184,7 +184,7 @@ impl<'a, 'b> Runtime<'a, 'b> {
self.memory.set(val_ptr as u32, &*val)?;
Ok(Some(0.into()))
Ok(None)
}
/// Fetches balance for address