automatically refit boxcollider2D upon sprite change

I have a prefab with a sprite renderer and a boxcollider2D that I use for the bullets in my game. The sprites I use for each type of bullet are of different sizes and so, when I instantiate a bul...