registerAlias method

LegacyBCS registerAlias(
  1. String name,
  2. String forType
)

Create an alias for a type. WARNING: this can potentially lead to recursion

final bcs = BCS(getSuiMoveConfig());
bcs.registerAlias('ObjectDigest', BCS.BASE58);
final b58_digest = bcs.de('ObjectDigest', '<digest_bytes>', Encoding.base64);

Implementation

LegacyBCS registerAlias(String name, String forType) {
  types[name] = forType;
  return this;
}