when you truffle migrate, the code will recognize whether you are on child chain or main chain and deploy contracts accordingly