tuweni / org.apache.tuweni.trie / StoredMerklePatriciaTrie / put

put

suspend fun put(key: Bytes, value: V?): Unit (source)

Updates the value that corresponds to the specified key, creating the value if one does not already exist.

If the value is null, deletes the value that corresponds to the specified key, if such a value exists.

Parameters

key - The key that corresponds to the value to be updated.

value - The value to associate the key with.

Exceptions

MerkleStorageException - If there is an error while writing to storage.