Exemple #1
0
        public override async Task <JObject> ExecuteAsync(IClient client)
        {
            var ethCompileSolidty = new EthCompileSolidity(client);
            var contractCode      = "contract Test {}";

            return(await ethCompileSolidty.SendRequestAsync(contractCode));
        }
Exemple #2
0
        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 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);
 }