Beispiel #1
0
 public static NEP6Account FromJson(JObject json, NEP6Wallet wallet)
 {
     return(new NEP6Account(wallet, json["address"].AsString().ToScriptHash(), json["key"]?.AsString())
     {
         Label = json["label"]?.AsString(),
         IsDefault = json["isDefault"].AsBoolean(),
         Lock = json["lock"].AsBoolean(),
         Contract = NEP6Contract.FromJson(json["contract"]),
         Extra = json["extra"]
     });
 }
Beispiel #2
0
 public static NEP6Account FromJson(JObject json, NEP6Wallet wallet)
 {
     return(new NEP6Account(wallet, json["address"].GetString().ToScriptHash(wallet.ProtocolSettings.AddressVersion), json["key"]?.GetString())
     {
         Label = json["label"]?.GetString(),
         IsDefault = json["isdefault"].GetBoolean(),
         Lock = json["lock"].GetBoolean(),
         Contract = NEP6Contract.FromJson(json["contract"]),
         Extra = json["extra"]
     });
 }