aergoio / aergoscan

Aergo Blockchain Explorer
http://aergoscan.io
5 stars 1 forks source link

Call functions using Aergo Connect #43

Open kroggen opened 2 years ago

kroggen commented 2 years ago

In the "Interactive" tab (when displaying a contract) some functions can only be called via a "call" / using a transaction.

Suggestion

When we click on the button it could pop up the Aergo Connect with a proper transaction to be signed.

It makes it easier to interact with the contract

The aergoscan can check in the ABI which ones are "query" and which ones are "call" and show the button caption accordingly.

The problem: some contracts are deployed using abi.register for all the functions, query included. In these cases the query functions would appear as requiring a call, but they do not...

One solution: