abiEncode method

  1. @override
EncoderResult abiEncode(
  1. AbiParameter params,
  2. BigInt input
)
override

Encodes a numeric value (BigInt) to ABI-encoded bytes.

Implementation

@override
EncoderResult abiEncode(AbiParameter params, BigInt input) {
  _ABIValidator.isValidNumber(params.type, input);
  return EncoderResult(
      isDynamic: false, encoded: BigintUtils.toBytes(input, length: 32));
}