Is this your first snake, by any chance? (ie. do you have experience feeding snakes?)
Since you've only had him for 2 weeks, part of the reason he may have refused to eat is that he was still settling in, in addition to that shed cycle.
I hope you're not handling him at all, as that may also stress him into not eating, as will offering too frequently. If he refuses a meal, wait a few days before trying again, & follow optimal guidelines* for feeding to increase your chances of success. (*feed in the evening/night hours, keep it low-key & low-light, wait until he's not cruising his home & preferably peeking out of a hide "ready to ambush" his prey, & review techniques for offering f/t from tongs if needed.)
I'm glad you want to switch him to eating f/t, but I'd also feed live initially. Baby snakes rely on instincts & live just works better at first to get them going the right direction.