Fix method call in sender function.

I tried to write a test for this, but I couldn't figure out how to create a `Transaction` in the correct state to get a valid sender. If you know how to construct a `Transaction` in test with a sender, please let me know.