Example #1
0
 public static bool TryParse(string rlp, out Tx tx)
 {
     try
     {
         tx = Parse(rlp);
         return(true);
     }
     catch
     {
         tx = null;
         return(false);
     }
 }
Example #2
0
 public static bool TryParse(byte[] rlp, out Tx tx)
 {
     try
     {
         tx = Parse(rlp);
         return(!ReferenceEquals(tx, null));
     }
     catch
     {
         tx = null;
         return(false);
     }
 }