Skip to content

Change error handling in fallback  #666

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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