I would like to understand how one can reference an external plutus script in one transaction. In solidity (for the other script), one can import the contract
interface into their script, create an object using the smart contract address and then call the visible functions of the other script (as below).
address token = 0xE592427A0AEce92De3Edee1F18E0157C05861564; IERC20(token).totalSupply();
I presume to achieve a similar effect in plutus, you would need to perform this all in the off-chain
Contract code? And in order to do all of this you would need both the code for the other script as well as the address?