getNonNullResolvedInstructionInput
Ensures a resolved instruction input is not null or undefined.
This function is used during instruction resolution to validate that required inputs have been properly resolved to a non-null value.
Type Parameters
| Type Parameter | Description |
|---|---|
T | The expected type of the resolved input value. |
Parameters
| Parameter | Type | Description |
|---|---|---|
inputName | string | The name of the instruction input, used in error messages. |
value | T | null | undefined | The resolved value to validate. |
Returns
T
The validated non-null value.
Throws
Throws a SolanaError if the value is null or undefined.