Gesta Danorum
The same story is found in "Gesta Danorum", though there Einarr is aiming at Svein, rather than Eirik.