fork of indigo with slightly nicer lexgen
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

goat plc: remove redundant checks now performed within go-didplc

+2 -10
+2 -10
cmd/goat/plc.go
··· 494 494 } 495 495 op := enum.AsOperation() 496 496 497 - if !op.IsGenesis() { 498 - return fmt.Errorf("not a genesis op") 499 - } 500 - 501 - if !op.IsSigned() { 502 - return fmt.Errorf("genesis op must be signed") 503 - } 504 - 505 - didplc, err := op.DID() 497 + did, err := op.DID() // errors if op is not a signed genesis op 506 498 if err != nil { 507 499 return err 508 500 } 509 501 510 - fmt.Println(didplc) 502 + fmt.Println(did) 511 503 512 504 return nil 513 505 }