use-ink / contracts-ui

Web application for deploying wasm smart contracts on Substrate chains that include the FRAME contracts pallet
https://contracts-ui.substrate.io/
GNU General Public License v3.0
61 stars 44 forks source link

Infer contract name from metadata #463

Open wottpal opened 1 year ago

wottpal commented 1 year ago

It would be awesome if when I "Add contract from address", it would infer the actual contract name from the json contents. Currently, it just names them all "New Contract".

When inferring the name (as stated above), it would be better to take the name from the contract.name field instead of inferring the filename. Because we are currently still using metadata.json for all abi's (like it was before) and keep them in differently named folders instead.

cc @statictype