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_call() can't execute contract transfer calls #3932

Closed
4 tasks
mauromedda opened this issue Apr 17, 2024 · 0 comments · Fixed by #3934
Closed
4 tasks

[BUG] eth_call() can't execute contract transfer calls #3932

mauromedda opened this issue Apr 17, 2024 · 0 comments · Fixed by #3934
Labels

Comments

@mauromedda
Copy link
Contributor

Issue

Steps to Reproduce

curl --location --request POST 'https://dev-api.zilliqa.com/'
--header 'Content-Type: application/json'
--data-raw '{
"jsonrpc": "2.0",
"method": "eth_call",
"params": [
{
"gas": "0x187e4",
"from": "0x643c8a8120efb675e82c5c58d8d473f5add0b5e6",
"to": "0x6c06afba51fa767af44c6cb9b8f9229f4c984085",
"data": "0x6a7612020000000000000000000000002930415a5957bcc9a56f2d236960f68c971e965600000000000000000000000000000000000000000000000000038d7ea4c680000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000016000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000041000000000000000000000000643c8a8120efb675e82c5c58d8d473f5add0b5e600000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000"
},
"latest"
],
"id": 1
}'
Response:

{
"error": {
"code": 3,
"data": "0x",
"message": "execution reverted"
},
"id": 1,
"jsonrpc": "2.0"
}

Expected

Actual

Work Around (If Any)

Impact:

  • Critical
  • High
  • Medium
  • Low

Additional Details

  • Versions:
  • Operating System:
  • Installed packages:
  • Screenshots / Log Files:
@mauromedda mauromedda added the bug label Apr 17, 2024
@bzawisto bzawisto linked a pull request Apr 24, 2024 that will close this issue
5 tasks
@mauromedda mauromedda changed the title [BUG] eth_call() doesn't support transfers [BUG] eth_call() doesn't support transfers contract calls Apr 24, 2024
@mauromedda mauromedda changed the title [BUG] eth_call() doesn't support transfers contract calls [BUG] eth_call() can't execute contract transfer calls Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant