hirosystems / explorer

Explore transactions and accounts on the Stacks blockchain. Clone any contract and experiment in your browser with the Explorer sandbox.
https://explorer.hiro.so/
MIT License
141 stars 102 forks source link

Convert form input values to Clarity buffer for contract params that require buffer #1820

Open ECBSJ opened 2 months ago

ECBSJ commented 2 months ago

Is your feature request related to a problem? Please describe.

Users are unable to call contract functions that require a buffer value for a parameter.

Describe the solution you'd like

To help convert a form's input value to a Clarity buffer type if a function's parameter type calls for a buffer.

Describe alternatives you've considered

Suggesting to users to programmatically call these functions, but not all users know how to do this.

Additional context

This request stems from a recent issue a user brought up in our Discord channel:

https://discord.com/channels/621759717756370964/911531946738339900/1288976074243444776

ryanwaits commented 2 months ago

Users are unable to call contract functions that require a buffer value for a parameter.

are they unable to make the contract call? or you're saying it's complex/confusing on how to create the buff and pass it in?

ECBSJ commented 2 months ago

Users are unable to call contract functions that require a buffer value for a parameter.

are they unable to make the contract call? or you're saying it's complex/confusing on how to create the buff and pass it in?

both. A normal user using the Sandbox and Contract page of the Explorer is unable to pass in buffer values as a parameter.