How to properly deal with readonly
values
#2671
Unanswered
freemanzMrojo
asked this question in
Question
Replies: 1 comment 1 reply
-
Can you share a TypeScript Playground with what you are running into? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Good afternoon,
Hope you are doing well. Maybe this question is duplicated, so sorry in advance. I was not able to find the same discussion :(
I have noticed that multiple methods are dealing
readonly
values (i.e.,parseAbiParameters
,decodeAbiParameters
...) so sometimes when operating with mutable variables I end up having code that I would like to avoid, like:So I was wondering if there is a clean way to proceed in these cases that you recommend, other than the obvious solution of turning my params into
readonly
params. thank you in advance!Beta Was this translation helpful? Give feedback.
All reactions