Commit 56e48169 authored by Mark Tyneway's avatar Mark Tyneway

lint: fix

parent 7746080f
...@@ -128,10 +128,9 @@ export const asAdvancedContract = (opts: { ...@@ -128,10 +128,9 @@ export const asAdvancedContract = (opts: {
// Now reset Object.defineProperty // Now reset Object.defineProperty
Object.defineProperty = def Object.defineProperty = def
// Override each function call to also `.wait()` so as to simplify the deploy scripts' syntax.
for (const fnName of Object.keys(contract.functions)) { for (const fnName of Object.keys(contract.functions)) {
const fn = contract[fnName].bind(contract) const fn = contract[fnName].bind(contract)
; (contract as any)[fnName] = async (...args: any) => { ;(contract as any)[fnName] = async (...args: any) => {
// We want to use the configured gas price but we need to set the gas price to zero if we're // We want to use the configured gas price but we need to set the gas price to zero if we're
// triggering a static function. // triggering a static function.
let gasPrice = opts.gasPrice let gasPrice = opts.gasPrice
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment