QueryContractsByCodeIdResponse.deserialize constructor

QueryContractsByCodeIdResponse.deserialize(
  1. List<int> bytes
)

Implementation

factory QueryContractsByCodeIdResponse.deserialize(List<int> bytes) {
  final decode = CosmosProtoMessage.decode(bytes, protoConfigStatic());
  return QueryContractsByCodeIdResponse(
    contractInfos:
        decode
            .getListOfBytes(1)
            .map((b) => ContractInfoWithAddress.deserialize(b))
            .toList(),
  );
}