Function pushToStackChecked
- pushToStackChecked<State>(state: State, item: Uint8Array, maximumLength?: ConsensusCommon): State
-
Parameters
-
state: State
-
item: Uint8Array
-
maximumLength: ConsensusCommon = ConsensusCommon.maximumStackItemLength
Returns State
If the provided item exceeds the maximum stack item length, apply an error. Otherwise, return the provided state with the item pushed to its stack.