-
Hi everyone. Right now I'm on Lesson 5 (7:30:00).
I was following the course and just double-checked my code with Patrick's, both deploy.js and SimpleStorage.sol The full error message: Error: missing revert data in call exception; Transaction reverted without a reason string [ See: https://links.ethers.org/v5-errors-CALL_EXCEPTION ] (data="0x", transaction={"from":"0x8F37d537F328b3B2f14C2d287841a8Aa2fE19cae","to":"0x7E194Cb05852B9ce1859DEA59D5C4f03feD99604","data":"0x2e64cec1","accessList":null}, error={"reason":"processing response error","code":"SERVER_ERROR","body":"{\"id\":62,\"jsonrpc\":\"2.0\",\"error\":{\"message\":\"VM Exception while processing transaction: revert\",\"code\":-32000,\"data\":{\"0x2f6a6404c1cbb4f8341d75aabea34bdfc7ea0ab100f1de9d22eaa26ddc547914\":{\"error\":\"revert\",\"program_counter\":92,\"return\":\"0x\"},\"stack\":\"RuntimeError: VM Exception while processing transaction: revert\\n at Function.RuntimeError.fromResults (/Applications/Ganache.app/Contents/Resources/static/node/node_modules/ganache-core/lib/utils/runtimeerror.js:94:13)\\n at /Applications/Ganache.app/Contents/Resources/static/node/node_modules/ganache-core/lib/blockchain_double.js:568:26\",\"name\":\"RuntimeError\"}}}","error":{"code":-32000,"data":{"0x2f6a6404c1cbb4f8341d75aabea34bdfc7ea0ab100f1de9d22eaa26ddc547914":{"error":"revert","program_counter":92,"return":"0x"},"stack":"RuntimeError: VM Exception while processing transaction: revert\n at Function.RuntimeError.fromResults (/Applications/Ganache.app/Contents/Resources/static/node/node_modules/ganache-core/lib/utils/runtimeerror.js:94:13)\n at /Applications/Ganache.app/Contents/Resources/static/node/node_modules/ganache-core/lib/blockchain_double.js:568:26","name":"RuntimeError"}},"requestBody":"{\"method\":\"eth_call\",\"params\":[{\"from\":\"0x8f37d537f328b3b2f14c2d287841a8aa2fe19cae\",\"to\":\"0x7e194cb05852b9ce1859dea59d5c4f03fed99604\",\"data\":\"0x2e64cec1\"},\"latest\"],\"id\":62,\"jsonrpc\":\"2.0\"}","requestMethod":"POST","url":"http://127.0.0.1:7545"}, code=CALL_EXCEPTION, version=providers/5.6.8)
at Logger.makeError (/Users/jasmine_sprout/solidity-course/ethers-simple-storage/node_modules/@ethersproject/logger/lib/index.js:233:21)
at Logger.throwError (/Users/jasmine_sprout/solidity-course/ethers-simple-storage/node_modules/@ethersproject/logger/lib/index.js:242:20)
at checkError (/Users/jasmine_sprout/solidity-course/ethers-simple-storage/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:108:16)
at JsonRpcProvider.<anonymous> (/Users/jasmine_sprout/solidity-course/ethers-simple-storage/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:703:47)
at step (/Users/jasmine_sprout/solidity-course/ethers-simple-storage/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:48:23)
at Object.throw (/Users/jasmine_sprout/solidity-course/ethers-simple-storage/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:29:53)
at rejected (/Users/jasmine_sprout/solidity-course/ethers-simple-storage/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:21:65)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
reason: 'missing revert data in call exception; Transaction reverted without a reason string',
code: 'CALL_EXCEPTION',
data: '0x',
transaction: {
from: '0x8F37d537F328b3B2f14C2d287841a8Aa2fE19cae',
to: '0x7E194Cb05852B9ce1859DEA59D5C4f03feD99604',
data: '0x2e64cec1',
accessList: null
},
error: Error: processing response error (body="{\"id\":62,\"jsonrpc\":\"2.0\",\"error\":{\"message\":\"VM Exception while processing transaction: revert\",\"code\":-32000,\"data\":{\"0x2f6a6404c1cbb4f8341d75aabea34bdfc7ea0ab100f1de9d22eaa26ddc547914\":{\"error\":\"revert\",\"program_counter\":92,\"return\":\"0x\"},\"stack\":\"RuntimeError: VM Exception while processing transaction: revert\\n at Function.RuntimeError.fromResults (/Applications/Ganache.app/Contents/Resources/static/node/node_modules/ganache-core/lib/utils/runtimeerror.js:94:13)\\n at /Applications/Ganache.app/Contents/Resources/static/node/node_modules/ganache-core/lib/blockchain_double.js:568:26\",\"name\":\"RuntimeError\"}}}", error={"code":-32000,"data":{"0x2f6a6404c1cbb4f8341d75aabea34bdfc7ea0ab100f1de9d22eaa26ddc547914":{"error":"revert","program_counter":92,"return":"0x"},"stack":"RuntimeError: VM Exception while processing transaction: revert\n at Function.RuntimeError.fromResults (/Applications/Ganache.app/Contents/Resources/static/node/node_modules/ganache-core/lib/utils/runtimeerror.js:94:13)\n at /Applications/Ganache.app/Contents/Resources/static/node/node_modules/ganache-core/lib/blockchain_double.js:568:26","name":"RuntimeError"}}, requestBody="{\"method\":\"eth_call\",\"params\":[{\"from\":\"0x8f37d537f328b3b2f14c2d287841a8aa2fe19cae\",\"to\":\"0x7e194cb05852b9ce1859dea59d5c4f03fed99604\",\"data\":\"0x2e64cec1\"},\"latest\"],\"id\":62,\"jsonrpc\":\"2.0\"}", requestMethod="POST", url="http://127.0.0.1:7545", code=SERVER_ERROR, version=web/5.6.1)
at Logger.makeError (/Users/jasmine_sprout/solidity-course/ethers-simple-storage/node_modules/@ethersproject/logger/lib/index.js:233:21)
at Logger.throwError (/Users/jasmine_sprout/solidity-course/ethers-simple-storage/node_modules/@ethersproject/logger/lib/index.js:242:20)
at /Users/jasmine_sprout/solidity-course/ethers-simple-storage/node_modules/@ethersproject/web/lib/index.js:305:32
at step (/Users/jasmine_sprout/solidity-course/ethers-simple-storage/node_modules/@ethersproject/web/lib/index.js:33:23)
at Object.next (/Users/jasmine_sprout/solidity-course/ethers-simple-storage/node_modules/@ethersproject/web/lib/index.js:14:53)
at fulfilled (/Users/jasmine_sprout/solidity-course/ethers-simple-storage/node_modules/@ethersproject/web/lib/index.js:5:58)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
reason: 'processing response error',
code: 'SERVER_ERROR',
body: '{"id":62,"jsonrpc":"2.0","error":{"message":"VM Exception while processing transaction: revert","code":-32000,"data":{"0x2f6a6404c1cbb4f8341d75aabea34bdfc7ea0ab100f1de9d22eaa26ddc547914":{"error":"revert","program_counter":92,"return":"0x"},"stack":"RuntimeError: VM Exception while processing transaction: revert\\n at Function.RuntimeError.fromResults (/Applications/Ganache.app/Contents/Resources/static/node/node_modules/ganache-core/lib/utils/runtimeerror.js:94:13)\\n at /Applications/Ganache.app/Contents/Resources/static/node/node_modules/ganache-core/lib/blockchain_double.js:568:26","name":"RuntimeError"}}}',
error: Error: VM Exception while processing transaction: revert
at getResult (/Users/jasmine_sprout/solidity-course/ethers-simple-storage/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:191:21)
at processJsonFunc (/Users/jasmine_sprout/solidity-course/ethers-simple-storage/node_modules/@ethersproject/web/lib/index.js:348:22)
at /Users/jasmine_sprout/solidity-course/ethers-simple-storage/node_modules/@ethersproject/web/lib/index.js:280:46
at step (/Users/jasmine_sprout/solidity-course/ethers-simple-storage/node_modules/@ethersproject/web/lib/index.js:33:23)
at Object.next (/Users/jasmine_sprout/solidity-course/ethers-simple-storage/node_modules/@ethersproject/web/lib/index.js:14:53)
at fulfilled (/Users/jasmine_sprout/solidity-course/ethers-simple-storage/node_modules/@ethersproject/web/lib/index.js:5:58)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
code: -32000,
data: [Object]
},
requestBody: '{"method":"eth_call","params":[{"from":"0x8f37d537f328b3b2f14c2d287841a8aa2fe19cae","to":"0x7e194cb05852b9ce1859dea59d5c4f03fed99604","data":"0x2e64cec1"},"latest"],"id":62,"jsonrpc":"2.0"}',
requestMethod: 'POST',
url: 'http://127.0.0.1:7545'
}
} |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Please create a repo of all your code and share the link here. |
Beta Was this translation helpful? Give feedback.
-
is your ganache(fake blockchain) running in the background? try reinstalling it ? |
Beta Was this translation helpful? Give feedback.
-
I solved it, but could you tell me how you formatted my question @alymurtazamemon ? |
Beta Was this translation helpful? Give feedback.
is your ganache(fake blockchain) running in the background? try reinstalling it ?