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
 80	message := signed.Message
 81	newCredentials := make([]byte, executionToBLSPadding)
 82	newCredentials[0] = params.BeaconConfig().ETH1AddressWithdrawalPrefixByte
 83	val.WithdrawalCredentials = append(newCredentials, message.ToExecutionAddress...) 84	err = st.UpdateValidatorAtIndex(message.ValidatorIndex, val)
 85	return st, err
 86}