Open yv-was-taken opened 2 years ago
I was having the same conundrum. If its helps anyone out there, just add the --libraries
flag for each library, eg:
forge create ExampleContract --rpc-url $RPC --private-key $KEY \
--libraries lib/solmate/src/utils/SafeCastLib.sol:SafeCastLib:0x......\
--libraries lib/solmate/src/utils/SafeTransferLib.sol:SafeTransferLib:0x......\
--libraries lib/solmate/src/utils/FixedPointMathLib.sol:FixedPointMathLib:0x......
forge create --libraries
tag on contract deployment throws error when linking multiple libraries.Not sure if lacking proper documentation showing the proper approach, or just a bug. Either way, as a user, I am confused as to how to link more than one external library on contract deployment.
ex.
current docs: