mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 10:31:04 +00:00
Storage chain fixes + guide (#9504)
* Transaction storage guide and fixes * Apply suggestions from code review Co-authored-by: Bruno Škvorc <bruno@skvorc.me> * Update frame/transaction-storage/README.md Co-authored-by: Bruno Škvorc <bruno@skvorc.me> * Extended example Co-authored-by: Bruno Škvorc <bruno@skvorc.me>
This commit is contained in:
@@ -164,8 +164,9 @@ pub mod registration {
|
||||
}
|
||||
|
||||
let proof = match client.block_indexed_body(number)? {
|
||||
Some(transactions) => Some(build_proof(parent.as_ref(), transactions)?),
|
||||
None => {
|
||||
Some(transactions) if !transactions.is_empty() =>
|
||||
Some(build_proof(parent.as_ref(), transactions)?),
|
||||
Some(_) | None => {
|
||||
// Nothing was indexed in that block.
|
||||
None
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user