pub fn encode<'a, T: Token<'a>>(token: &T) -> Vec<u8> ⓘ
ABI-encodes a single token.
You are probably looking for SolValue::abi_encode if you are not intending to use raw tokens.
SolValue::abi_encode
See the abi module for more information.
abi