(t *testing.T)
| 86 | } |
| 87 | |
| 88 | func TestRecipientEmpty(t *testing.T) { |
| 89 | _, addr := defaultTestKey() |
| 90 | tx, err := decodeTx(common.Hex2Bytes("f84a808080808080011ca09b16de9d5bdee2cf56c28d16275a4da68cd30273e2525f3959f5d62557489921a0372ebd8fb3345f7db7b5a86d42e24d36e983e259b0664ceb8c227ec9af572f3d")) |
| 91 | if err != nil { |
| 92 | t.Error(err) |
| 93 | t.FailNow() |
| 94 | } |
| 95 | |
| 96 | from, err := Sender(HomesteadSigner{}, tx) |
| 97 | if err != nil { |
| 98 | t.Error(err) |
| 99 | t.FailNow() |
| 100 | } |
| 101 | if addr != from { |
| 102 | t.Error("derived address doesn't match") |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | func TestRecipientNormal(t *testing.T) { |
| 107 | _, addr := defaultTestKey() |
nothing calls this directly
no test coverage detected