Unnecessary Slice-to-Slice Conversion analyzer (#7321)

* analyzer with tests
* fix bazel file
* modify analyzer to fix build issues
* add analyzer to tool chain
* remove arrays from inspections
* fix redundant [:] operator
* Merge branch 'master' into use-slice-directly
* Merge branch 'master' into use-slice-directly
* fix another inspection
* add package-level comment
This commit is contained in:
Radosław Kapka
2020-09-23 18:14:34 +02:00
committed by GitHub
parent 347aa14a28
commit dca93ce641
48 changed files with 251 additions and 87 deletions

View File

@@ -127,7 +127,7 @@ func NewValidatorAccount(directory string, password string) error {
===================================================================
`, tx.Data())
fmt.Println("***Enter the above deposit data into step 3 on https://prylabs.net/participate***")
publicKey := validatorKey.PublicKey.Marshal()[:]
publicKey := validatorKey.PublicKey.Marshal()
log.Infof("Public key: %#x", publicKey)
return nil
}