kalidao / kali-ui

Here lies the UI for KALI
https://app.kali.gg/
23 stars 23 forks source link

Allow tuples as parameters for smartcontract proposals #312

Open fedepo opened 1 year ago

fedepo commented 1 year ago

Some smartcontracts require tuple[] as input parameters. When that's the case, the user will want to pass a JSON formatted array (as they'd do on Etherscan).

This little fix checks if the input provided is a JSON. If it is, it will parse the JSON and pass it as an array to the function that creates the payload. If it's not a JSON string, it will just pass it as is.

for context, discord thread is here: https://discord.com/channels/923399898769018921/1161730434120548413

vercel[bot] commented 1 year ago

@fedepo is attempting to deploy a commit to the KaliCo Team on Vercel.

A member of the Team first needs to authorize it.

fedepo commented 6 months ago

@audsssy any chance you can take a look at this / merge it? We tested this quite a bit and used on our verbal deployment successfully. thanks.