Magickbase / godwoken_explorer

Godwoken Explorer
https://v1.gwscan.com
18 stars 8 forks source link

Contract tab displays wrong code/metadata #1446

Open WhiteR4bbitt opened 1 year ago

WhiteR4bbitt commented 1 year ago

Verified contract 0x904bcc39a1629a20104aae54ef2e62d30ca2af19 which is NationMarket here: https://gwscan.com/account/0x904bcc39a1629a20104aae54ef2e62d30ca2af19?tab=contract

Sourcify lookup: https://sourcify.dev/#/lookup/0x904Bcc39A1629A20104AAe54ef2E62D30ca2af19

The contents on Sourcify (and viewed in Remix) are accurate and can be confirmed by importing 0x904bcc39a1629a20104aae54ef2e62d30ca2af19 into Remix on Godwoken Mainnet.

None of the Read/Write functions exist in the actual contract and the code/ABI are 100% the wrong contract.

Keith-CY commented 1 year ago

The contract and compiling info could be found at https://repo.sourcify.dev/contracts/full_match/71402/0x904Bcc39A1629A20104AAe54ef2E62D30ca2af19/metadata.json

The contract should be NationMarket.sol, please have a check @zmcNotafraid

Keith-CY commented 1 year ago

The data was rectified accidentally by running the sync task, so we cannot debug with online data.

Will go through the code to check the logic.