mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-11-19 02:26:34 +01:00
added lenght check
This commit is contained in:
@@ -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())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user