Skip to main content

move_some

Function move_some 

Source
pub fn move_some<T: Serialize>(value: T) -> MovementResult<Vec<u8>>
Expand description

Helper to create an Option::Some argument for Move.

§Example

let maybe_value = move_some(42u64)?;

§Errors

Returns MovementError::Bcs if BCS serialization of value fails.