mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-09-16 08:23:35 +02: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