Calling C++ contracts from EVM
How a C++ contract calls an EVM contract in AppLayer.
interface MyContract {
function myFunction(uint256 arg1, uint256 arg2) external view returns (uint256);
}contract AnotherContract {
function callMyFunction(address cppAddr, uint256 arg1, uint256 arg2) public view returns (uint256) {
return MyContract(cppAddr).myFunction(arg1, arg2);
}
}Last updated