TestTxSetType tests Transaction's SetType(), Type() function.
(t *testing.T)
| 248 | |
| 249 | // TestTxSetType tests Transaction's SetType(), Type() function. |
| 250 | func TestTxSetType(t *testing.T) { |
| 251 | tx := NewTransaction(0, common.HexToAddress("0xb794f5ea0ba39494ce83a213fffba74279579268"), new(big.Int), 0, new(big.Int), nil) |
| 252 | tx.SetType(PrivateTx) |
| 253 | if tx.Type() != PrivateTx { |
| 254 | t.Fatal("The returned types of transaction is not correct.") |
| 255 | } |
| 256 | } |
nothing calls this directly
no test coverage detected