FIXED:
Searched for the name of my program in the project directory and found out that it was a mismatch in the Anchor.toml file.
[features]seeds = false[programs.localnet]boync_anchor_program = "EkvnvRY2prU1sJpVLHBk5qsNMXBryaZeMVacRSE1pcZM"
I changed the pubkey to match the one declared in the program code and everything worked.
A clean rebuild did not worked. I wonder how the Anchor.toml file got stuck with a different programId. A bug probably?