Truffle Migrations don’t deploy new contract in testing
Setting overwrite: false
when calling deploy
in our migrations scripts means that we don’t deploy a new contract when testing.
See Truffle documentation for details: https://www.trufflesuite.com/docs/truffle/getting-started/running-migrations#deployer-deploy-contract-args-options-
Discovered this in: Truffle Tests not being run against contract deployed to Ganache instead uses another contract address