Why alloc_locals is only used in _burn() but not in _mint() in cairo contracts?

I was looking at cairo contracts by OZ and didn't understand the use of alloc_locals only in _burn() function but not in _mint(). I read about alloc_locals from cairo docs and understood it but here the use of it little bit confusing for me.

library: https://github.com/OpenZeppelin/cairo-contracts/blob/main/src/openzeppelin/token/erc20/library.cairo#L254

Hey @rohit-goswami

In a previous iteration, we needed the alloc_locals to prevent a revoked reference. If you take a look at the following link, balance gets revoked without alloc_locals:
https://github.com/OpenZeppelin/cairo-contracts/blob/fd6630e327d73cdfeb8660d56768c1697517b44d/src/openzeppelin/token/erc20/library.cairo#L279-L285

That said, it's no longer needed :slight_smile: thank you for bringing this up!