Ejemplo n.º 1
0
        private ErrorCode WalletUpdateRecordValueHandler(int storage_handle, string type_, string id, IntPtr value,
                                                         int value_len)
        {
            try
            {
                var valueBytes = new byte[value_len];
                Marshal.Copy(value, valueBytes, 0, value_len);

                _storage.UpdateRecordValueAsync(storage_handle, type_, id, valueBytes).GetAwaiter().GetResult();
                return(ErrorCode.Success);
            }
            catch
            {
                return(ErrorCode.WalletStorageError);
            }
        }