upon copying it on remix and choosing the main contract a prompt with "test.sol:IterableMapping" is showing and upon deploying it on testnet the library IterableMapping is deployed instead of the main contract
when you deployed it, there are two transaction, 1 for eploying main contract and another is for iterable contract. so while verification your main contract, you'll have to integrate this library [iterable].
I don't understand, Whenever I am deploying it on the main contract "DaddyDollar" I only have a single prompt, it just says "creation of library test.sol:iterable mapping pending"
for some reason it doesn't prompt 2 contract, it only does prompt one which was the library.
whenever I am trying to deploy the main contract (DaddyDollar) it just prompts a single one which is ""creation of library test.sol:iterablemapping pending"
This is only applicable on remix :
you need to deploy the IterableMapping(or any library) first before the main contract, upon deploying the library, include it on the json of the main contract from the artifacts so that it will read that you have it already deployed
Eg.
MyToken.json
custom:
address :"0x00deployedlibrary" //<-edit this and replace the library address
DeployLib : false // <- true by default, just set to false