encodeLength static method

List<int> encodeLength(
  1. String length
)

SCALE compact-encodes length (given as a decimal string).

Implementation

static List<int> encodeLength(String length) {
  return const SubstrateScaleCUintEncoder().encode(length.toString());
}