Skip to main content

move_vec

Function move_vec 

Source
pub fn move_vec<T: Serialize>(items: &[T]) -> Vec<u8> 
Expand description

Helper to create a vector argument for Move functions.

Move vectors are BCS-encoded with a length prefix followed by elements.

§Example

let addresses = move_vec(&[addr1, addr2, addr3]);
let amounts = move_vec(&[100u64, 200u64, 300u64]);