mirror of https://github.com/poanetwork/gecko.git
vms: Add test of avm.Tx.SemanticVerify with nil transaction
This commit is contained in:
parent
12aa3897b3
commit
cd23540e4e
|
@ -20,6 +20,9 @@ func TestTxNil(t *testing.T) {
|
|||
if err := tx.SyntacticVerify(ctx, c, 1); err == nil {
|
||||
t.Fatalf("Should have errored due to nil tx")
|
||||
}
|
||||
if err := tx.SemanticVerify(nil, nil); err == nil {
|
||||
t.Fatalf("Should have errored due to nil tx")
|
||||
}
|
||||
}
|
||||
|
||||
func TestTxEmpty(t *testing.T) {
|
||||
|
|
Loading…
Reference in New Issue