Skip to content

Commit

Permalink
Fixes rebase problem
Browse files Browse the repository at this point in the history
  • Loading branch information
NejcZdovc committed Feb 21, 2019
1 parent bfb2488 commit 5ff0738
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions vendor/bat-native-ledger/src/bat_helper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1117,14 +1117,15 @@ bool GRANT_RESPONSE::loadFromJson(const std::string & json) {

// On successful grant
error = !(
d.HasMember("altcurrency") && d["altcurrency"].IsString() &&
d.HasMember("expiryTime") && d["expiryTime"].IsNumber() &&
d.HasMember("probi") && d["probi"].IsString());
d.HasMember("protocolVersion") && d["protocolVersion"].IsNumber() &&
d.HasMember("minimumReconcileTimestamp") &&
d["minimumReconcileTimestamp"].IsNumber() &&
d.HasMember("type") && d["type"].IsString());

if (error == false) {
altcurrency = d["altcurrency"].GetString();
expiryTime = d["expiryTime"].GetUint64();
probi = d["probi"].GetString();
minimumReconcileTimestamp = d["minimumReconcileTimestamp"].GetUint64();
protocolVersion = d["protocolVersion"].GetUint64();
type = d["type"].GetString();
}

return !error;
Expand Down

0 comments on commit 5ff0738

Please sign in to comment.