According to a discussion on slack, it is not correct to use eval to create the functions via code generation in Contractor. Instead, a macro should be used. Cc @yashcodes