Anvil and sanctuary don't work together. If you have stacks of anvil when you end turn, they're consumed but don't give any benefit.