GroupPointer.fromAccountBytes constructor

GroupPointer.fromAccountBytes(
  1. List<int> accountBytes
)

Implementation

factory GroupPointer.fromAccountBytes(List<int> accountBytes) {
  final decode = _Utils.decodeFromAccount(accountBytes);
  return GroupPointer(
    authority: decode["authority"] == SolAddress.defaultPubKey
        ? null
        : decode["authority"],
    groupAddress: decode["groupAddress"] == SolAddress.defaultPubKey
        ? null
        : decode["groupAddress"],
  );
}