Skip to content

Commit

Permalink
Merge pull request #56 from tellor-io/tim
Browse files Browse the repository at this point in the history
remove reference to dispute in getDataBefore
  • Loading branch information
tkernell authored Jan 27, 2022
2 parents b2ff7f1 + d3df6b3 commit 0e2284a
Show file tree
Hide file tree
Showing 8 changed files with 58,184 additions and 76 deletions.
33,694 changes: 33,694 additions & 0 deletions artifacts/build-info/bac371d8732d6cc09303b05c06ff6909.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion artifacts/contracts/UsingTellor.sol/UsingTellor.dbg.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../build-info/61e5465336360eb865f20e54c093f5b7.json"
"buildInfo": "../../build-info/bac371d8732d6cc09303b05c06ff6909.json"
}
4 changes: 2 additions & 2 deletions artifacts/contracts/UsingTellor.sol/UsingTellor.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../build-info/61e5465336360eb865f20e54c093f5b7.json"
"buildInfo": "../../../build-info/bac371d8732d6cc09303b05c06ff6909.json"
}

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions contracts/UsingTellor.sol
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ contract UsingTellor {
);
if (!_found) return (false, bytes(""), 0);
uint256 _time = tellor.getTimestampbyQueryIdandIndex(_queryId, _index);
_value = tellor.retrieveData(_queryId, _time);
//If value is diputed it'll return zero
_value = tellor.retrieveData(_queryId, _time);
if (keccak256(_value) != keccak256(bytes("")))
return (true, _value, _time);
return (false, bytes(""), 0);
Expand Down
Loading

0 comments on commit 0e2284a

Please sign in to comment.