Function: assertPrefixedHexString
Utils.assertPrefixedHexString
▸ assertPrefixedHexString(s
, name?
): asserts s is PrefixedHexString
Verifies if the provided input is a PrefixedHexString.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
s | string | undefined | string input |
name | string | 'value' | optional name for the asserted value |
Returns
asserts s is PrefixedHexString
HexString or throws error