You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue with Gas Estimation and Transaction Revert on zkSync
I'm trying to deploy and interact with a smart contract on zkSync, but when I attempt to fund through my contract, I encounter the following error:
Error in function invocation (message): "cannot estimate gas; transaction may fail or may require manual gas limit [ See: https://links.ethers.org/v5-errors-UNPREDICTABLE_GAS_LIMIT ] (error={\"reason\":\"execution reverted\",\"code\":\"UNPREDICTABLE_GAS_LIMIT\",\"method\":\"estimateGas\",\"transaction\":{\"from\":\"0xa61464658AfeAf65CccaaFD3a512b69A83B77618\",\"maxPriorityFeePerGas\":{\"type\":\"BigNumber\",\"hex\":\"0x59682f00\"},\"maxFeePerGas\":{\"type\":\"BigNumber\",\"hex\":\"0x6553f100\"},\"to\":\"0xdf5445d8518Ab352f721dAf6D945E20795e6A8A8\",\"value\":{\"type\":\"BigNumber\",\"hex\":\"0x0de0b6b3a7640000\"},\"data\":\"0xb60d4288\",\"type\":2,\"accessList\":null},\"error\":{\"reason\":\"processing response error\",\"code\":\"SERVER_ERROR\",\"body\":\"{\\\"jsonrpc\\\":\\\"2.0\\\",\\\"error\\\":{\\\"code\\\":3,\\\"message\\\":\\\"execution reverted\\\",\\\"data\\\":\\\"0x\\\"},\\\"id\\\":102}\",\"error\":{\"code\":3,\"data\":\"0x\"},\"requestBody\":\"{\\\"method\\\":\\\"eth_estimateGas\\\",\\\"params\\\":[{\\\"type\\\":\\\"0x2\\\",\\\"maxFeePerGas\\\":\\\"0x6553f100\\\",\\\"maxPriorityFeePerGas\\\":\\\"0x59682f00\\\",\\\"value\\\":\\\"0xde0b6b3a7640000\\\",\\\"from\\\":\\\"0xa61464658afeaf65cccaafd3a512b69a83b77618\\\",\\\"to\\\":\\\"0xdf5445d8518ab352f721daf6d945e20795e6a8a8\\\",\\\"data\\\":\\\"0xb60d4288\\\"}],\\\"id\\\":102,\\\"jsonrpc\\\":\\\"2.0\\\"}\",\"requestMethod\":\"POST\",\"url\":\"https://zksync-devnet.nethermind.io\"}}, tx={\"data\":\"0xb60d4288\",\"to\":{},\"from\":\"0xa61464658AfeAf65CccaaFD3a512b69A83B77618\",\"value\":{\"type\":\"BigNumber\",\"hex\":\"0x0de0b6b3a7640000\"},\"type\":2,\"maxFeePerGas\":{\"type\":\"BigNumber\",\"hex\":\"0x6553f100\"},\"maxPriorityFeePerGas\":{\"type\":\"BigNumber\",\"hex\":\"0x59682f00\"},\"nonce\":{},\"gasLimit\":{},\"chainId\":{}}, code=UNPREDICTABLE_GAS_LIMIT, version=abstract-signer/5.7.0)"
The error seems to occur in this part of my contract where I interact with the price feed:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Issue with Gas Estimation and Transaction Revert on zkSync
I'm trying to deploy and interact with a smart contract on zkSync, but when I attempt to fund through my contract, I encounter the following error:
The error seems to occur in this part of my contract where I interact with the price feed:
Beta Was this translation helpful? Give feedback.
All reactions