mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 19:51:05 +00:00
Add append api and use it to deposit events (#5795)
* use append api to deposit events * use optimized append * one more optimization * fix bug * fix issues * address review
This commit is contained in:
@@ -117,6 +117,11 @@ pub trait Storage {
|
||||
Externalities::clear_prefix(*self, prefix)
|
||||
}
|
||||
|
||||
/// Append to storage item (assumes it is in "Vec" format).
|
||||
fn append(&mut self, key: &[u8], value: Vec<u8>) {
|
||||
self.storage_append(key.to_vec(), value);
|
||||
}
|
||||
|
||||
/// "Commit" all existing operations and compute the resulting storage root.
|
||||
///
|
||||
/// The hashing algorithm is defined by the `Block`.
|
||||
|
||||
Reference in New Issue
Block a user