After this, the powers given to the autonomous Catalan government according to the Spanish Constitution of 1978 were transferred and the Statute of Autonomy of Catalonia (Estatut d'Autonomia) was passed after being approved both by referendum in Catalonia and by the Spanish parliament.