mirror of
https://github.com/fiatjaf/nak.git
synced 2024-11-22 16:19:07 -05:00
verify: accept event to be verified as json argument.
This commit is contained in:
parent
e89823b10e
commit
347a82eaa9
|
@ -15,7 +15,7 @@ var verify = &cli.Command{
|
|||
|
||||
it outputs nothing if the verification is successful.`,
|
||||
Action: func(c *cli.Context) error {
|
||||
for stdinEvent := range getStdinLinesOrBlank() {
|
||||
for stdinEvent := range getStdinLinesOrFirstArgument(c.Args().First()) {
|
||||
evt := nostr.Event{}
|
||||
if stdinEvent != "" {
|
||||
if err := json.Unmarshal([]byte(stdinEvent), &evt); err != nil {
|
||||
|
|
Loading…
Reference in New Issue
Block a user