i think what happened was that I used 2 out of the 3 phantom wing's sword codes.
This would not damage the Wii. If it encountered buggy coding, the Wii would not fry itself, it would lock up. Your Wii simply had other issues that coincidentally caused it to fry when you were testing some codes. The codes themselves were not the issue.