Sets a key-value pair in the datastore of the given address. Existing entries are overwritten and missing ones are created.
Can only be called at smart contract generation time by the parent smart contract to the child's address.
key
value
string
StaticArray<u8>
Args
Can be either string, Args, or StaticArray.
The child smart contract address.
address
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 datastore of the given address. Existing entries are overwritten and missing ones are created.
Remarks
Can only be called at smart contract generation time by the parent smart contract to the child's address.
Throws
key
andvalue
type are neitherstring
,StaticArray<u8>
, orArgs
.