public static string SetDefaultFromAddressIfNotSet(this ContractMessage contractMessage, string defaultFromAdddress)
 {
     if (string.IsNullOrEmpty(contractMessage.FromAddress))
     {
         contractMessage.FromAddress = defaultFromAdddress;
     }
     return(contractMessage.FromAddress);
 }
Ejemplo n.º 2
0
 protected void SetAddressFrom(ContractMessage contractMessage)
 {
     contractMessage.FromAddress = contractMessage.FromAddress ?? AddressFrom;
 }
 public static HexBigInteger GetHexMaximumGas(this ContractMessage contractMessage)
 {
     return(GetDefaultValue(contractMessage.Gas));
 }
 public static HexBigInteger GetHexNonce(this ContractMessage contractMessage)
 {
     return(GetDefaultValue(contractMessage.Nonce));
 }
 public static HexBigInteger GetHexValue(this ContractMessage contractMessage)
 {
     return(GetDefaultValue(contractMessage.AmountToSend));
 }