Rising York talent Oli Pratt has put pen to paper on a new four-year contract that will keep him at Wakefield Trinity until the end of 2028.