public async Task <object> ExecuteTestAsync(IClient client) { var ethCompileSolidty = new EthCompileSolidity(client); var contractCode = "contract test { function multiply(uint a) returns(uint d) { return a * 7; } }"; return(await ethCompileSolidty.SendRequestAsync(contractCode)); }
public EthApiCompilerService(IClient client) : base(client) { CompileLLL = new EthCompileLLL(client); CompileSerpent = new EthCompileSerpent(client); CompileSolidity = new EthCompileSolidity(client); GetCompilers = new EthGetCompilers(client); }
public override async Task <JObject> ExecuteAsync(IClient client) { var ethCompileSolidty = new EthCompileSolidity(client); var contractCode = "contract Test {}"; return(await ethCompileSolidty.SendRequestAsync(contractCode)); }
public EthCompilerService(RpcClient client) : base(client) { CompileLLL = new EthCompileLLL(client); CompileSerpent = new EthCompileSerpent(client); CompileSolidity = new EthCompileSolidity(client); GetCompilers = new EthGetCompilers(client); }
public async Task<dynamic> ExecuteTestAsync(RpcClient client) { var ethCompileSolidty = new EthCompileSolidity(client); var contractCode = "contract test { function multiply(uint a) returns(uint d) { return a * 7; } }"; return await ethCompileSolidty.SendRequestAsync( contractCode); }