【solidity】from solidity: Warning: “selfdestruct“ has been deprecated. The underlying opcode will

男娘i 2024-02-18 11:42 165阅读 0赞

文章目录

    • 现象
    • 合约测试案例

现象

销毁智能合约时:

  1. from solidity:
  2. Warning: "selfdestruct" has been deprecated. The underlying opcode will eventually undergo breaking changes, and its use is not recommended.
  3. --> suicide.sol:13:9:
  4. |
  5. 13 | selfdestruct(owner); // 将合约余额发送给合约创建者(owner)
  6. | ^^^^^^^^^^^^

发表评论

表情:
评论列表 (有 0 条评论,165人围观)

还没有评论,来说两句吧...

相关阅读