createCatPuzzle function

Future<Program> createCatPuzzle(
  1. Bytes tailHash,
  2. Program innerPuzzle
)

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);
}