contractIdOf static method

String contractIdOf(
  1. String keyOrId
)

The contract id of keyOrId — accepts both the bare id and the zfa:-prefixed key.

Implementation

static String contractIdOf(String keyOrId) =>
    keyOrId.startsWith(prefix) ? keyOrId.substring(prefix.length) : keyOrId;