The current WritableSingletonState#put(T) API definition is documented as accepting null values; but its canonical Merkle implementation is based on a SingletonNode whose ValueLeaf wrapper has a serialize() implementation that will throw a NPE given a null value.
Steps to reproduce
Try to serialize a MerkleStateRoot with a SingletonState whose value is null.
Description
The current
WritableSingletonState#put(T)
API definition is documented as acceptingnull
values; but its canonical Merkle implementation is based on aSingletonNode
whoseValueLeaf
wrapper has aserialize()
implementation that will throw a NPE given anull
value.Steps to reproduce
Try to serialize a
MerkleStateRoot
with aSingletonState
whose value isnull
.Additional context
No response
Hedera network
other
Version
develop
Operating system
None