The reforms would have allowed Mr. Chavez , who has vowed to transform Venezuela into a socialist state , to seek re-election indefinitely .