prysmaticlabs / prysm

append possibly assigns to a wrong variable CRT-D0001
Bug risk
Minor
1 occurrence in this check
append result not assigned to the same slice
 84	message := signed.Message
 85	newCredentials := make([]byte, executionToBLSPadding)
 86	newCredentials[0] = params.BeaconConfig().ETH1AddressWithdrawalPrefixByte
 87	val.WithdrawalCredentials = append(newCredentials, message.ToExecutionAddress...) 88	err = st.UpdateValidatorAtIndex(message.ValidatorIndex, val)
 89	return st, err
 90}