Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 881 Bytes

StorageContext.md

File metadata and controls

25 lines (15 loc) · 881 Bytes

StorageContext Class

The class representing the storage context of the persistent store.

The smart contract can obtain its own storage context through Storage.CurrentContext and pass the context as an argument to other contracts(as a way of authorization), allowing other contracts to call the read/write methods for its persistent storage.

Namespace:Neo.SmartContract.Framework.Services

Assembly: Neo.SmartContract.Framework

Syntax

public class StorageContext

Attribute

Name Description
AsReadOnly Converts the specified storage context to a new readonly storage context

Constructor

The StorageContext object is constructed through Storage.CurrentContext.