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

            return(await ethCompileSolidty.SendRequestAsync(contractCode));
        }
예제 #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);
 }