Combine function parameters (#8758)

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
terence tsao
2021-04-13 12:56:28 -07:00
committed by GitHub
parent 0ea11ac212
commit 59eb2e60d0
2 changed files with 2 additions and 2 deletions

View File

@@ -274,7 +274,7 @@ func TestWeakSubjectivity_ParseWeakSubjectivityInputString(t *testing.T) {
}
}
func genState(t *testing.T, valCount uint64, avgBalance uint64) iface.BeaconState {
func genState(t *testing.T, valCount, avgBalance uint64) iface.BeaconState {
beaconState, err := testutil.NewBeaconState()
require.NoError(t, err)

View File

@@ -229,7 +229,7 @@ func (s *Signature) Copy() common.Signature {
// VerifyCompressed verifies that the compressed signature and pubkey
// are valid from the message provided.
func VerifyCompressed(signature []byte, pub []byte, msg []byte) bool {
func VerifyCompressed(signature, pub, msg []byte) bool {
// Validate signature and PKs since we will uncompress them here
return new(blstSignature).VerifyCompressed(signature, true, pub, true, msg, dst)
}