AraBlocks/ara-contracts

Info statements should be in units of Ara

bplaster opened this issue · 1 comments

Expected Behavior

submit in rewards.js should have info statements print values in units of Ara.

Actual Behavior

in the following statement, _budget is not in units of Ara.

_budget in

    await proxyContract.events.BudgetSubmitted({ fromBlock: 'latest', function(error) { debug(error) } })
      .on('data', (log) => {
        const { returnValues: { _did, _jobId, _budget } } = log
        info(requesterDid, 'budgeted', _budget, 'tokens for job', _jobId)
      })
      .on('changed', (log) => {
        debug(`Changed: ${log}`)
      })
      .on('error', (log) => {
        debug(`error:  ${log}`)
      })

Steps to Reproduce the Problem

Specifications

  • Version:
  • Platform:
  • Subsystem:

This has been fixed and merged into master, closing.