//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 }
public static void saveToStorage(string key, byte[] value) { #if NET_CORE NetCoreStorageUtil.saveToStorage(key, value); #endif #if NEO NeoVMStorageUtil.saveToStorage(key, value); #endif }
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); }