how to properly export a contract abi to reuse it in another contract?
Hi guys, I have this question, lately I’ve been using dapp2dapp calls a lot (this is when one contract calls another)
In order to call contract A from contract B, I need to export the abi of contract A to the library and plug it into forc.toml of contract B.
At the moment I do it this way:
contracts
contract-a
contract-b
abi/contract-a-abi
I have contracts A and B in the same folder and in the same folder I have the abi folder where the contract-a-abi library with a copy of contract A’s abi is located
The problem with this approach is that if I want to change something in the abi of contract A, I have to go to the abi folder in the contract-a-abi library and copy the abi from contract A there.
Could you please tell me how to do this without having to copy the abi?