public override string AddConstructor(ConstructorDetails constructorDetails, string parentHash) { var parameters = constructorDetails.Parameters; StringMapper(ref parameters); var parameterAnchor = constructorDetails.ParameterAnchor; StringMapper(ref parameterAnchor); Constructor constructor = new(constructorDetails.Modifier, constructorDetails.Identifier, parameters, parameterAnchor, parentHash); constructor.Hash = Tools.ByteToHex(Tools.GetSha256Hash(Encoding.UTF8.GetBytes(JsonConvert.SerializeObject(constructor)))); Memory.Add(constructor); return(constructor.Hash); }
public abstract string AddConstructor(ConstructorDetails constructorDetails, string parentHash);