Sets a key-value pair in the current contract's datastore. Existing entries are overwritten and missing ones are created.
key
value
string
StaticArray<u8>
Args
Can be either string, StaticArray<u8>, or Args.
The key to set in the datastore.
The value to associate with the key in the datastore.
Generated using TypeDoc
Sets a key-value pair in the current contract's datastore. Existing entries are overwritten and missing ones are created.
Throws
key
andvalue
type are neitherstring
,StaticArray<u8>
, orArgs
.