subwasmlib 0.13.2

a small lib used by the subwasm cli
1
2
3
4
5
6
7
8
9
use frame_metadata::decode_different::DecodeDifferent;

/// Helper to make fetching the decoded value easier
pub fn convert<B: 'static, O: 'static>(dd: &DecodeDifferent<B, O>) -> &O {
	match dd {
		DecodeDifferent::Decoded(value) => value,
		_ => panic!("Failed decoding, that's unfortunate and rather expected"),
	}
}