abiEncode method
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),
name: params.name);
}