- Preparing search index...
- The search index is not available
dsov-utils
Function parseToOptionTypeV2
- parseToOptionTypeV2(type): OptionTypeV2
-
Parameters
-
type: {
call?: Object;
put?: Object;
}
-
Optional
call?: Object
-
Optional
put?: Object
Returns OptionTypeV2
The parsed option type.
Parses option type from Anchor, decoded as an object into an enum.
Throws
If the option type is not supported.
Example