I wish you well, but your hand thing is not carpal tunnel.
Your problems stem from the ulnar nerve, which passes superficial to the wrist's flexor retinaculum not deep to it. The distribution of your hand's symptoms is definitive: it is an ulnar nerve issue, likely an ulnar nerve tunnel syndrome. That needs to be ruled out. The treatment for carpal tunnel syndrome is different from ulnar nerve syndrome.
Your leg problem is not related to your wrist problem.
I wish you well . . . I've known several people who have had entrapped nerves and it isn't pleasant, though many can be successfully treated.
Thank you very much, bloc. That is all very enlightening. I'm still not sure about what type of test I'm having on Friday, but I understand it takes about an hour - EMG (?) maybe.