目录
1.Call
call
是一个与其他合约交互的底层函数;
通过调用 fallback
函数发送 ether 时建议使用的方法;
但这不是调用现有函数的推荐方法;
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
contract Receiver {
event Received(address caller, uint amount
目录
call
是一个与其他合约交互的底层函数;
通过调用 fallback
函数发送 ether 时建议使用的方法;
但这不是调用现有函数的推荐方法;
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
contract Receiver {
event Received(address caller, uint amount