Converts a BigNumberish type to a bigint. If the input is already a bigint, the return value will be the bigint itself, otherwise it will be converted to a bigint using big-endian byte order.
The BigNumberish value to convert.
The bigint representation of the BigNumberish value.
Converts a BigNumberish type to a bigint. If the input is already a bigint, the return value will be the bigint itself, otherwise it will be converted to a bigint using big-endian byte order.