Skip to content

Change error handling in fallback  #666

@shankars99

Description

@shankars99

Chapter 15 (How to Build an Oracle - Part 2) contains the following code in the default workspace

the code within:

oracleContract.events.SetLatestEthPriceEvent(async (err, event) => {

has:

if (err) { 
      console.error('Error on event', err) 
      return 
    }
    // Do something
  })

however it expects:

if (err) console.error('Error on event', err)

changing the evaluator to accept either the first or change the default workspace to include the newer one would help solve the issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions