harmony-one / explorer-v2-frontend

19 stars 23 forks source link

Reading contract data doesn't work as expected #56

Closed coreycaplan3 closed 2 years ago

coreycaplan3 commented 3 years ago

The Problem

Seems like most of the function calls on the Read Contract tab either 1) don't work or 2) don't display in the UI properly causing the UI to remain unchanged. Upon calling a read function, there is a brief progress bar that appears and disappears, and no data is shown in the UI where the progress bar was.

Upon checking the console, I couldn't see any network calls being made (the read call was done via web3 in a separate JS instance) nor any errors being logged.

The site also doesn't check that you're connected to the Harmony network before broadcasting a transaction. Meaning, you can accidentally be connected to Ethereum Mainnet and broadcast transactions.

What this contract is?

We just deployed a Multi Sig wallet to mainnet (shard 0) to get things rolling for our project. Here's the link / wallet:

https://explorer.harmony.one/address/0x4853365bc81f8270d902076892e13f27c27e7266

Some important data to know: