Skip to main content
Version: Next

Function: isTypeNonZero()

isTypeNonZero(type): boolean

Defined in: src/utils/calldata/cairo.ts:192

Checks if the given type is a NonZero type.

Parameters

type

string

The type to check.

Returns

boolean

true if the type is NonZero type, false otherwise.

Example

const result = cairo.isTypeNonZero("core::zeroable::NonZero::<u8>");
//result = true