diff --git a/lib/contracts/code_templates/main-context.js.ejs b/lib/contracts/code_templates/main-context.js.ejs index 53fa09d2..77694c7b 100644 --- a/lib/contracts/code_templates/main-context.js.ejs +++ b/lib/contracts/code_templates/main-context.js.ejs @@ -1 +1,5 @@ -var __mainContext = __mainContext || (typeof self !== 'undefined' ? self : this); +var __mainContext = __mainContext || ( + typeof this !== 'undefined' ? this : ( + typeof self !== 'undefined' ? self : void 0 + ) +);