5

以太坊合约调用与 call 调用区别?

 2 years ago
source link: https://learnblockchain.cn/question/2377
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.

以太坊合约调用与 call 调用区别?

以太坊合约调用已部署合约,用call调用和用接口调用有什么区别?

最佳答案 17小时前

用接口调用,如果调用失败, 整个交易会回退。

而用 call 调用, 如果调用失败, call 调用会返回 false, 但交易仍然可以继续。

Tiny熊 - 布道者
擅长:智能合约,以太坊 | 采纳率 39% | 回答于 17小时前

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK