public void CreateTransaction(IMessage message, Transaction.Types.Contract.Types.ContractType contract_type) { this.transaction = new Transaction() { RawData = new raw() }; this.transaction.RawData.Contract.Add(new Transaction.Types.Contract() { Type = contract_type, Parameter = Any.Pack(message) }); }
public TransactionCapsule(IMessage message, Transaction.Types.Contract.Types.ContractType type) { CreateTransaction(message, type); }