pub fn insert_fake_orchard_shielded_data(
transaction: &mut Transaction,
) -> &mut ShieldedData
Expand description
Modify a V5 transaction to insert fake Orchard shielded data.
Creates a fake instance of orchard::ShieldedData
with one fake action. Note that both the
action and the shielded data are invalid and shouldn’t be used in tests that require them to be
valid.
A mutable reference to the inserted shielded data is returned, so that the caller can further customize it if required.
§Panics
Panics if the transaction to be modified is not V5.