我在web remix 里面分别写了两个 sol文件
callee.sol 和 caller.sol
然后在call.sol 里面import “Callee.sol”;
编译的时候总是报错说找不到Callee.sol
Error: not found Callee.sol
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.8.2 <0.9.0;
import “Callee.sol”;
contract Caller{
address calleeAddress;
constructor(address _calleeAddress){
calleeAddress = _calleeAddress;
}
function setCalleeX(uint _x)public {
Callee callee = Callee(calleeAddress);
callee.setX(_x);
}
}