Skip to main content

GetStorageFlags

Function GetStorageFlags 

Source
pub fn GetStorageFlags(key: &StorageKeyContractData) -> Result<u32, SysErr>
Expand description

Returns the storage flags the current transaction requests for the key, as visible in the current call frame. A key with no pending write has no flags, so it reads as StorageDeltaFlags::None, the same as a pending write without flags.

§Arguments

  • key

§Outputs

  • flags

This is a convenience wrapper around uninit_GetStorageFlags that returns the result as SyscallResult<T>.