I don’t think there is a consensus.
Aston Barrett and Jamerson preferred to only use 1 finger. Others use 2,3,4.
I use however many the music needs. Each finger sounds very slightly different, not least because pinky and index are quite far apart on the string, so sometimes I stick to 1 finger for slow even notes, but will happily use all 4 for fast runs and rakes.
10 different players will have 10 different approaches.