Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk
Class EvmHookStorageUpdate.EvmHookStorageSlot
java.lang.Object
com.hedera.hashgraph.sdk.EvmHookStorageUpdate
com.hedera.hashgraph.sdk.EvmHookStorageUpdate.EvmHookStorageSlot
- Enclosing class:
EvmHookStorageUpdate
Represents a direct storage slot update.
This class allows direct manipulation of storage slots in the EVM hook's storage.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hedera.hashgraph.sdk.EvmHookStorageUpdate
EvmHookStorageUpdate.EvmHookMappingEntries, EvmHookStorageUpdate.EvmHookStorageSlot -
Constructor Summary
ConstructorsConstructorDescriptionEvmHookStorageSlot(byte[] key, byte[] value) Create a new storage slot update. -
Method Summary
Modifier and TypeMethodDescriptionbooleanfromProtobuf(EvmHookStorageSlot proto) byte[]getKey()Get the storage slot key.byte[]getValue()Get the storage slot value.inthashCode()(package private) EvmHookStorageUpdateConvert this storage update to a protobuf message.toString()Methods inherited from class com.hedera.hashgraph.sdk.EvmHookStorageUpdate
fromProtobuf
-
Constructor Details
-
EvmHookStorageSlot
public EvmHookStorageSlot(byte[] key, byte[] value) Create a new storage slot update.- Parameters:
key- the storage slot key (max 32 bytes, minimal representation)value- the storage slot value (max 32 bytes, minimal representation)
-
-
Method Details
-
getKey
public byte[] getKey()Get the storage slot key.- Returns:
- a copy of the key bytes
-
getValue
public byte[] getValue()Get the storage slot value.- Returns:
- a copy of the value bytes
-
toProtobuf
EvmHookStorageUpdate toProtobuf()Description copied from class:EvmHookStorageUpdateConvert this storage update to a protobuf message.- Specified by:
toProtobufin classEvmHookStorageUpdate- Returns:
- the protobuf EvmHookStorageUpdate
-
fromProtobuf
-
equals
-
hashCode
public int hashCode() -
toString
-