templates/rpc.hs: fix PARAMS, rop PARAMS_STR and quotes

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2021-05-11 11:20:47 +02:00
parent f76e6f3779
commit 5ad36567e8
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 2 additions and 2 deletions

View File

@ -12,8 +12,8 @@ if [[ -z "${METHOD}" ]]; then
exit 1
fi
if [[ -n "${@}" ]]; then
PARAMS=$(printf '%s\",\"' "${@}")
PARAMS="\"${PARAMS_STR%%\",\"}\""
PARAMS=$(printf '%s,' "${@}")
PARAMS="${@%%,}"
else
PARAMS=''
fi