I get this error all the time because the truffle version that I use is the newer version and some smart contracts uses the older versions.
Is there any way that I can get rid of these errors?

```
Error: Truffle is currently using solc 0.8.12, but one or more of your contracts specify "pragma solidity 0.7.6".
Please update your truffle config or pragma statement(s).

```