createCatPuzzle function
Implementation
Future<Program> createCatPuzzle(Bytes tailHash, Program innerPuzzle) async {
final serializedInnerPuzzle = await innerPuzzle.serializeToBytes();
final puzzle = await api.catsCreateCatPuzzle(
tailHash: tailHash.byteList,
innerPuzzleHash: serializedInnerPuzzle.byteList,
);
return Program.deserializeBytes(puzzle);
}