diff --git a/contracts/utils.go b/contracts/utils.go index 961ea1a61a..17e108ee64 100644 --- a/contracts/utils.go +++ b/contracts/utils.go @@ -556,7 +556,7 @@ func Decrypt(key []byte, cryptoText string) string { // XORKeyStream can work in-place if the two arguments are the same. stream.XORKeyStream(ciphertext, ciphertext) - return fmt.Sprintf("%s", ciphertext) + return string(ciphertext[:]) } // Generate random string.