I heard that was what to do, but if I made a mistake, I'm sorry.
I head that was how to do it, but if that's wrong, I'm sorry.
ご質問ありがとうございます。
「そうやって」はdo it like thisとかdo it like thatみたいな英語になります。ですので、回答と違って、I heard that it is done like thisとかI head that it is done like thatも使えます。
I made a mistakeとthat's wrongは「間違えた」と「違った」の違いです。
ご参考いただければ幸いです。