Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

[get_code] 0x0000000000000000000000000000000000000000 return has no valid account_id #569

Closed
gpBlockchain opened this issue Nov 11, 2022 · 3 comments · Fixed by #570
Closed
Assignees

Comments

@gpBlockchain
Copy link

env:https://godwoken-testnet-v1.ckbapp.dev

hardhat upgrade contract use uups will call eth_getCode with (0x0) args ,because godwoken return failed ,make hardhat upgrade contract failed

upgrade demo: https://github.com/OpenDefiContract/UUPSDemoContract.git

jsonRpcRequest: {
  jsonrpc: '2.0',
  method: 'eth_getCode',
  params: [ '0x0000000000000000000000000000000000000000', 'latest' ],
  id: 12
}
jsonRpcResponse: {
  jsonrpc: '2.0',
  id: 12,
  error: {
    code: -32099,
    message: 'zero address 0x0000000000000000000000000000000000000000 has no valid account_id! more info: https://github.com/nervosnetwork/godwoken-web3/blob/main/docs/compatibility.md'
  }
}

expected

should return 0x

@Flouse
Copy link
Collaborator

Flouse commented Nov 15, 2022

@Dawn-githup
Copy link

fixed godwokenrises/godwoken-tests#207

@Flouse
Copy link
Collaborator

Flouse commented Nov 29, 2022

@Flouse Flouse closed this as completed Nov 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants