A method of abating carbon dioxide and hydrogen sulfide