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:
If the function is marked as query, treat it as query (show the query button)
If the function is marked as call, it can try to make a query first and if it fails, then it creates a transaction and sends it to the aergo connect app
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: