-
Notifications
You must be signed in to change notification settings - Fork 144
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
platon_estimateGas 返回的message信息过少 #1819
Comments
在EVM合约的执行中,如果抛出异常了,是会组装成 execution reverted: xxx 返回的,除非合约执行本身返回的是execution reverted错误。 |
用的同一个合约文件,以太坊上调用eth_estimateGas返回提示信息,而platon上没有看到。 `pragma solidity =0.5.17; /**
}` |
出现该问题的原因是,由于历史原因有两处文件定义了errExecutionReverted错误,旧error未删除,返回的client处和evm中的不同,导致自定义错误为提示 解决: |
close by done |
代码中给了require,但是报错信息没有提示,对于开发定位问题非常不友好:
个人建议,可以参考eth,给出报错信息:
The text was updated successfully, but these errors were encountered: