pub fn read_snapshot(builder: &LmdbWasmTestBuilder) -> (Key, SeigniorageRecipientsSnapshot) {
    // Find the hash of the auction contract.
    let auction_contract_hash = builder.get_system_auction_hash();

    // Read the key under which the snapshot is stored.
    let validators_key = builder
        .get_contract(auction_contract_hash)
        .expect("auction should exist")
        .named_keys()[SEIGNIORAGE_RECIPIENTS_SNAPSHOT_KEY];

    // Decode the old snapshot.
    let stored_value = builder
        .query(None, validators_key, &[])
        .expect("should query");
    let cl_value = stored_value
        .as_cl_value()
        .cloned()
        .expect("should be cl value");
    (validators_key, cl_value.into_t().expect("should convert"))
}
/// Reads the `SeigniorageRecipientsSnapshot` stored in the global state.
Reads the `SeigniorageRecipientsSnapshot` stored in the global state.
Reads the ` SeigniorageRecipientsSnapshot ` stored in the global state .
pub fn read_snapshot(builder: &LmdbWasmTestBuilder) -> (Key, SeigniorageRecipientsSnapshot) {
    // Find the hash of the auction contract.
    let auction_contract_hash = builder.get_system_auction_hash();
    // Read the key under which the snapshot is stored.
    let validators_key = builder
        .get_contract(auction_contract_hash)
        .expect("auction should exist")
        .named_keys()[SEIGNIORAGE_RECIPIENTS_SNAPSHOT_KEY];
    // Decode the old snapshot.
    let stored_value = builder
        .query(None, validators_key, &[])
        .expect("should query");
    let cl_value = stored_value
        .as_cl_value()
        .cloned()
        .expect("should be cl value");
    (validators_key, cl_value.into_t().expect("should convert"))
}
pub fn read_snapshot ( builder : & LmdbWasmTestBuilder ) -> ( Key , SeigniorageRecipientsSnapshot ) { // Find the hash of the auction contract. let auction_contract_hash = builder . get_system_auction_hash ( ) ; // Read the key under which the snapshot is stored. let validators_key = builder . get_contract ( auction_contract_hash ) . expect ( " " ) . named_keys ( ) [ SEIGNIORAGE_RECIPIENTS_SNAPSHOT_KEY ] ; // Decode the old snapshot. let stored_value = builder . query ( None , validators_key , & [ ] ) . expect ( " " ) ; let cl_value = stored_value . as_cl_value ( ) . cloned ( ) . expect ( " " ) ; ( validators_key , cl_value . into_t ( ) . expect ( " " ) ) }
Reads the `SeigniorageRecipientsSnapshot` stored in the global state.
Reads the ` SeigniorageRecipientsSnapshot ` stored in the global state .
builder
&LmdbWasmTestBuilder
builder
&LmdbWasmTestBuilder