private PlasmaCore.EIP712.Output CreateEIP712Output(TransactionOutputData output)
 {
     return(new PlasmaCore.EIP712.Output
     {
         Owner = output.Owner,
         Currency = output.Currency,
         Amount = output.Value.ToBigIntegerFromRLPDecoded()
     });
 }
Exemplo n.º 2
0
 /// <summary>
 /// Adds output to transaction
 /// </summary>
 /// <param name="owner">transaction output recipient</param>
 /// <param name="currency">transaction output currency</param>
 /// <param name="amount">transaction output amount</param>
 public bool AddOutput(string owner, string currency, BigInteger amount)
 {
     if (Outputs.Count <= MAX_OUTPUTS)
     {
         var tod = new TransactionOutputData(owner, currency, amount.ToBytesForRLPEncoding());
         if (!tod.IsEmpty())
         {
             Outputs.Add(tod);
             return(true);
         }
     }
     return(false);
 }