Open tpmccallum opened 4 years ago
When following the instructions I get the following error running yarn example
yarn example
import { createWatcher } from '@makerdao/multicall'; ^ SyntaxError: Unexpected token {
I resolved this by using the following code instead
var mc = require("@makerdao/multicall") //snip const watcher = mc.createWatcher( // snip
You can also use const { createWatcher} = require('@makerdao/multicall') instead
const { createWatcher} = require('@makerdao/multicall')
When following the instructions I get the following error running
yarn example
I resolved this by using the following code instead