added lenght check

This commit is contained in:
pippellia-btc
2025-03-20 12:35:40 +01:00
committed by fiatjaf_
parent c1d9c094ee
commit 25838a024e
2 changed files with 10 additions and 3 deletions

View File

@@ -87,6 +87,9 @@ func TestIDCheck(t *testing.T) {
Content: fmt.Sprintf("hello %d", i),
Tags: Tags{},
}
require.False(t, evt.CheckID())
evt.Sign(GeneratePrivateKey())
require.True(t, evt.CheckID())