Ejemplo n.º 1
0
        public void ExecuteContractMethod(string rawTx, out string txId)
        {
            txId = string.Empty;
            var ci = new CommandInfo("broadcast_tx");

            ci.Parameter = rawTx;
            CH.RpcBroadcastTx(ci);
            if (ci.Result)
            {
                ci.GetJsonInfo();
                txId = ci.JsonInfo["txId"].ToString();
            }
            Assert.IsTrue(ci.Result, $"Execute contract failed. Reason: {ci.GetErrorMessage()}");
        }