pub fn new(contract: Contract) -> Self {
        let mut buf = Vec::with_capacity(contract.serialized_length());
        contract.encode(&mut buf);
        let id = ContractID::from_serialized_contract(&buf);
        Self { id, contract }
    }
/// Creates an Output with a given contract
Creates an Output with a given contract
Creates an Output with a given contract
pub fn new(contract: Contract) -> Self {
        let mut buf = Vec::with_capacity(contract.serialized_length());
        contract.encode(&mut buf);
        let id = ContractID::from_serialized_contract(&buf);
        Self { id, contract }
    }
pub fn new ( contract : Contract ) -> Self { let mut buf = Vec :: with_capacity ( contract . serialized_length ( ) ) ; contract . encode ( & mut buf ) ; let id = ContractID :: from_serialized_contract ( & buf ) ; Self { id , contract } }
Creates an Output with a given contract
Creates an Output with a given contract
contract
Contract
contract
Contract