2
关于合约函数请求异常的疑问求解
source link: https://learnblockchain.cn/question/2938
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
关于合约函数请求异常的疑问求解
对某一个合约函数进行请求遇到过两种异常,
第一种就是 函数直接返回错误信息,这种异常是不上链的,没有gas费产生.我是用c#的 web3库,表现出的是exception,
另一种情况是交易也经过pending之后上链,最终报错,并且在区块链浏览器上有感叹号记录,也有gas费产生.
这两种情况都会有可能出现,请问两种结果分别是在什么情况下会产生呢 还是随机出现的
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK