Skip to content

Commit

Permalink
refactor(Oracle): remove unnecessary binding (#885)
Browse files Browse the repository at this point in the history
  • Loading branch information
nduchak authored Jan 31, 2020
1 parent 8d33430 commit f463237
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions es/ae/oracle.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ async function registerOracle (queryFormat, responseFormat, options = {}) {
}))
return {
...(await this.send(oracleRegisterTx, opt)),
...(await getOracleObject.bind(this)(`ok_${accountId.slice(3)}`))
...(await this.getOracleObject(`ok_${accountId.slice(3)}`))
}
}

Expand Down Expand Up @@ -194,7 +194,7 @@ async function postQueryToOracle (oracleId, query, options = {}) {
}))
return {
...(await this.send(oracleRegisterTx, opt)),
...(await (await getOracleObject.bind(this)(oracleId)).getQuery(queryId))
...(await (await this.getOracleObject(oracleId)).getQuery(queryId))
}
}

Expand Down Expand Up @@ -222,7 +222,7 @@ async function extendOracleTtl (oracleId, oracleTtl, options = {}) {
}))
return {
...(await this.send(oracleExtendTx, opt)),
...(await getOracleObject.bind(this)(oracleId))
...(await this.getOracleObject(oracleId))
}
}

Expand Down Expand Up @@ -253,7 +253,7 @@ async function respondToQuery (oracleId, queryId, response, options = {}) {
}))
return {
...(await this.send(oracleRespondTx, opt)),
...(await getOracleObject.bind(this)(oracleId))
...(await this.getOracleObject(oracleId))
}
}

Expand Down

0 comments on commit f463237

Please sign in to comment.