I have two contracts Vase and Box
contract Vase {
uint256 public vase1;
event VaseValueChanged(uint256 newValue);
function createVase(uint256 newValue) public {
vase1 = newValue;
emit VaseValueChanged(newValue);
}
// Reads the last stored value
function retrieveVase() external view returns (uint256) {
return vase1;
}
}
contract Box {
uint256 private value;
// Stores a new value in the contract
function store(uint256 newValue, uint256 breadth) public {
value = newValue;
}
}
Both are upgradable smartcontracts and I am using the openzeppelin library and using its CLI for upgrading these contracts.
How can I call retrieveVase() method of Vase contract from Box contract. I don't want to inherit Vase in Box contract.