whitehall claimed a violation of the treaty of peking , the agreement negotiated by hammond , wherein china had granted to britain an equal access to any of her opened ports under the same terms as any other western nation .