Ejemplo n.º 1
0
        //todo: testing purposes only. Not used in real smart contract
        public static void clearStorage()
        {
#if NET_CORE
            NetCoreStorageUtil.clearStorage();
#endif
#if NEO
            NeoVMStorageUtil.clearStorage();
#endif
        }
Ejemplo n.º 2
0
        public static void saveToStorage(string key, byte[] value)
        {
#if NET_CORE
            NetCoreStorageUtil.saveToStorage(key, value);
#endif
#if NEO
            NeoVMStorageUtil.saveToStorage(key, value);
#endif
        }
Ejemplo n.º 3
0
        public static byte[] readFromStorage(byte[] key)
        {
#if NET_CORE
            return(NetCoreStorageUtil.readFromStorage(key));
#endif
#if NEO
            return(NeoVMStorageUtil.readFromStorage(key));
#endif
        }
 public static byte[] readFromStorage(string key)
 {
     //return NeoVMStorageUtil.readFromStorage(key);
     return(NetCoreStorageUtil.readFromStorage(key));
 }
 //todo: testing purposes only. Not used in real smart contract
 public static void clearStorage()
 {
     NetCoreStorageUtil.clearStorage();
 }
 public static void saveToStorage(string key, byte[] value)
 {
     //NeoVMStorageUtil.saveToStorage(key,value);
     NetCoreStorageUtil.saveToStorage(key, value);
 }