Hello OpenZeppelin community,
I was trying out EatTheBlock’s tutorial on forking uniswap (https://www.youtube.com/watch?v=U3fTTqHy7F4&t). So after deploying ganache, migrating the contracts from ‘periphery’ and then from ‘core’ (they are two different truffle projects) I was not able to access the contracts from each other. When going to the periphery truffle project, executing ‘truffle console’ and trying to access a smart contract from core i get an error:
let token1 = await Token1.at(‘contract address’);
Uncaught ReferenceError: Token1 is not defined
Both truffle projects are linked to the same ganache network (linked to the workspace in ganache settings), so I would expect that all contracts, that are deployed on that network should be accessible. Why is the truffle console only limited to the contracts from the truffle project, from where i have initiated truffle console?
Is there a way to use truffle console on the ganache network and access all the smart contracts that are deployed there?
Truffle v5.2.3 (core: 5.2.3)
Solidity - 0.6.6 (solc-js)
Code to reproduce