How Did Noah Fund the Construction of the Ark?

Financing an expensive righteous project in an unrighteous generation