use spec::Constructor as ConstructorInterface;
use token::Token;
use error::Error;
use encoder::Encoder;
#[derive(Clone, Debug)]
pub struct Constructor {
_interface: ConstructorInterface,
}
impl Constructor {
pub fn new(interface: ConstructorInterface) -> Self {
Constructor {
_interface: interface
}
}
pub fn encode_call(&self, tokens: Vec<Token>) -> Result<Vec<u8>, Error> {
Ok(Encoder::encode(tokens))
}
}