AElfProject / aelf-block-explorer

It is a Block Explorer and Analytics Platform for AElf.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to update the contract name ?

potter-sun opened this issue · comments

Description

Currently, developers in aelf browser cannot locate contracts through contract name query, so it provides an entry to add and change contract names.

Describe the solution you'd like

Contract Update differentiates "Update Contract File" and "Update The Contract Name Only."
"Update Contract File" enables the real contract file update, while "Update The Contract Name Only" allows developers to change only the name.
-Only the Contract Owner can change the contract's name.

Describe alternatives you've considered

Specifications:
Step 1: Find [Update The Contract Name Only].

  1. Open the explorer and click Governance -> Proposal
  2. Click Login to connect your wallet.
  3. Click Apply -> Deploy/Update Contract -> Update Contract -> Update The Contract Name Only

Step 2: Enter the address of the contract you want to update.
Step 3: Enter a new contract name.
Step 4: Click [Apply]. The pop-up notification of "Contract Name has been updated!" will appear and the name is successfully changed.