I deployed my contract in Ropsten Testnet with submitHash as a function name. I get function Name with value passed in Etherscan.

function submitHash(bytes32 pHash) external onlyOwner() {
       emit Submitted(pHash);

and I get this in Etherscan input field

Function: submitHash(bytes32 proofHash) ***

MethodID: 0x08891a32
[0]:  69a013f23c52f5415ae41e64561a6948e08df59904925db53f0df74fd64a3833

But when I use publishHash as a function name in the Ropsten testnet and in mainnet

function publishHash(bytes32 pHash) external onlyOwner() {
       emit Submitted(pHash);

I get this in input data field which is only a hash :


I dont understand it as my code is all same except for the function name. Can someone tell me the reason or a way to get publishHash in etherscan input field?

  • 2
    Do you have the hashes of both transactions? Is your contract verified? Etherscan uses verified contracts ABI to match the MethodID if it doesn't recognize it they will appear as a bytes sequence. The explorer for testnets like ropsten/rinkeby aren't updated immediately so even if you verify your contract it may toke a while until those changes are visible.
    – Ismael
    Sep 9, 2020 at 4:51
  • 1
    @Ismael Thanks for the info. I verified the contract and now it is showing up
    – Mr.SsS
    Sep 9, 2020 at 5:47


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.