I have the following code in my remix.ethereum.org project:
pragma solidity ^0.6.10;
// SPDX-License-Identifier: Unlicensed
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/proxy/UpgradeableProxy.sol";
contract ImplementationContract {
function returnTen() public pure returns(uint) {
return 10;
}
}
contract ProxyContract is UpgradeableProxy {
constructor(address _logic, bytes memory _data)
UpgradeableProxy(_logic, _data)
public
{
}
}
I've used Remix to deploy both contracts to the JavaScript VM.
Now what is the easiest way to call returnTen()
from the ProxyContract
deployment?