On the G617, there's a small mechanical arm/lever that trips the shutter. Make sure this isn't damaged otherwise it LOOKS like a straight swap. I have film in my camera so can't look inside to if it's a regular ring.

Also surprised the front cage didn't save your lens.