Why is my enchantment not working

I have the enchantment on a carrot on a stick but when I hit loads of sheep it doesn't make the sheep go on fire This my script and I even tried changing the chance to 1 to make it always light it but it still didnt work

    "description": "Blaze",
    "supported_items": "minecraft:carrot_on_a_stick",
    "weight": 1,
    "max_level": 1,
    "min_cost": {
      "base": 0,
      "per_level_above_first": 0
    },
    "max_cost": {
      "base": 0,
      "per_level_above_first": 0
    },
    "anvil_cost": 0,
    "slots": [],
    "effects": {
      "minecraft:post_attack": [
        {
          "requirements": {
            "condition": "minecraft:random_chance",
            "chance": 0.1
          },
          "effect": {
            "type": "minecraft:ignite",
            "duration": 5
          },
          "enchanted": "attacker",
          "affected": "victim"
        }
      ]
    }
  }
Continue to help post