Skip to content
This repository has been archived by the owner on Aug 22, 2018. It is now read-only.

Fix fetching transactions. #55

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix fetching transactions.
  • Loading branch information
e00dan committed Feb 16, 2018
commit d438610f2b3d213ac9e766d4b0b1f60298b6842a
2 changes: 1 addition & 1 deletion src/requestFactory/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class RequestFactory {
async getRequestCreatedLogs(filter, startBlock, endBlock) {
const f = filter || {}
const curBlock = await Util.getBlockNumber(this.web3)
const start = startBlock || curBlock - 5000 > 0 ? curBlock - 5000 : 0
const start = startBlock || (curBlock - 5000 > 0 ? curBlock - 5000 : 0)
const end = endBlock || "latest"
const event = this.instance.RequestCreated(
f,
Expand Down