code: def commit_to(self, db: BaseDB) -> None:
          
          self.logger.debug2('persist storage root to data store')
          if self._trie_nodes_batch is None:
              raise ValidationError(
                  "It is invalid to commit an account's storage if it has no pending changes. "
                  "Always check storage_lookup.has_changed_root before attempting to commit."
              )
          self._trie_nodes_batch.commit_to(db, apply_deletes=False)
          self._clear_changed_root()
docs: Trying to commit changes when nothing has been written will raise a
          ValidationError