You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: Improve argument parsing in readContract function (#749)
* refactor: Improve argument parsing in readContract function
The readContract function in the src/server/routes/contract/read/read.ts file has been refactored to improve the parsing of arguments. Previously, the function split the arguments string by comma and mapped each argument. Now, the function first tries to parse the arguments as a JSON array. If successful, it uses the parsed arguments. If parsing fails, it falls back to the previous method of splitting the string.
This change improves the flexibility and reliability of argument parsing in the readContract function.
* refactor: Update test description for reading a contract method with struct and number params
0 commit comments