예제 #1
0
        public static object InitContractAdmin()
        {
            byte[] address = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6 };
            initContractAdminParam param = new initContractAdminParam {
                AdminOntID = mAdminOntID
            };

            byte[] ret = Native.Invoke(0, address, "initContractAdmin", param);
            return(ret[0] == 1);
        }
예제 #2
0
        public static object InitContractAdmin(object[] args)
        {
            byte[]   address    = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6 };
            byte[]   adminOntID = (byte[])args[0];
            object[] param      = new object[1];
            param[0] = new initContractAdminParam {
                AdminOntID = adminOntID
            };

            return(Native.Invoke(0, address, "initContractAdmin", param));
        }