Whenever two counties of this state, acting under a contract made pursuant to RCW
86.13.010 through
86.13.090, shall make an improvement in connection with the course, channel or flow of a river, thereby causing it to abandon its existing channel, bed, bank or banks for the entire distance covered by said improvement, or for any part or portion thereof, or by said improvement shall prevent a river from resuming at a future time an ancient or abandoned channel or bed, or shall construct improvements intended so to do, all the right, title and interest of the state of Washington in and to said abandoned channel or channels, bed or beds, bank or banks, up to and including the line of ordinary high water, shall be and the same is hereby given, granted and conveyed jointly to the counties making such improvement.