Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] eth_getCode returns no data of successfully deployed contract #1086

Closed
maciej-kozuszek opened this issue Jul 24, 2023 · 2 comments
Closed
Assignees
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@maciej-kozuszek
Copy link

Version

  • Godwoken Testnet v1

Describe the bug
After successfully deploying contract deploy transaction the eth_getCode returns empty data, also calls on contract methods fails with message failure and verifying contracts returns error that there is no contract at address visible in deployed transaction.

To Reproduce

Send to godwoken testnet rpc node (https://godwoken-testnet-v1.ckbapp.dev) message:

{
  "method": "eth_getTransactionReceipt",
  "params": [
    "0xb507f21e236f0c066c02206ea1853de7ff8fa35578b62eda19b79f7cfa39f950"
  ],
  "id": 48,
  "jsonrpc": "2.0"
}

which should return "contractAddress": "0x3d22880a87732afc0a40dc9ace540525f92e8bec"
now call

{
  "method": "eth_getCode",
  "params": [
    "0x3d22880a87732afc0a40dc9ace540525f92e8bec",
    "latest"
  ],
  "id": 48,
  "jsonrpc": "2.0"
}

and returned code of deployed contract is empty "result": "0x"

Expected behavior

Result of last step should give byte code visible in deploy transaction

Additional context

Tested on block 3,525,813 and before (contract was deployed on block 3,525,270)

@maciej-kozuszek maciej-kozuszek added the bug Something isn't working label Jul 24, 2023
@blckngm
Copy link
Contributor

blckngm commented Jul 25, 2023

The input of the deploy transaction doesn't seem right, it stops right away (opcode 0x00) so there's no return data. How did you generate or send the deploy transaction? Maybe you can try a different deployment tool?

@blckngm blckngm added question Further information is requested and removed bug Something isn't working labels Jul 25, 2023
@maciej-kozuszek
Copy link
Author

You are right, I deployed on godwoken compiled contract using zk-solc compiler for zkSync which generates different bytecode.

@Flouse Flouse added the help wanted Extra attention is needed label Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants