mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 02:17:58 +00:00
Use storage::append in the implementation of the storage types (#5889)
* Start improving `storage_append` * Fix some stuff * Fix compilation * Update docs and add new test * More tests * Test kill + append
This commit is contained in:
@@ -262,8 +262,8 @@ impl Externalities for BasicExternalities {
|
||||
key: Vec<u8>,
|
||||
value: Vec<u8>,
|
||||
) {
|
||||
let previous = self.inner.top.entry(key).or_default();
|
||||
crate::ext::append_to_storage(previous, value).expect("Failed to append to storage");
|
||||
let current = self.inner.top.entry(key).or_default();
|
||||
crate::ext::StorageAppend::new(current).append(value);
|
||||
}
|
||||
|
||||
fn chain_id(&self) -> u64 { 42 }
|
||||
|
||||
Reference in New Issue
Block a user