You should have consulted the owners manual or the workshop manual if you were not sure which way it went in.
Remove the gas tank and anything else you need to ,so you can see the wiring.
Look for melted wires.
You will have to repair all melted wiring and test all the components in the charging system.
Do you know how to solder and use heat shrink tubing?
If not you will have to learn or hire a mechanic to do that.
It will take most of a day to do this. 8 hours at least.
On a Roadstar Adventure.