Skip to content

Commit

Permalink
box_test_api fix #314
Browse files Browse the repository at this point in the history
  • Loading branch information
kaynarov committed Mar 17, 2020
1 parent f8df584 commit ff8aca3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/cyber.box_test_api.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ struct cyber_box_api: base_contract_api {
}

variant get_box(name contract, name treasurer, name title) {
auto all = _tester->get_all_chaindb_rows(_code, _code.value, N(box), false);
auto all = _tester->get_all_chaindb_rows(_code, treasurer.value, N(box), false);
for(auto& v : all) {
if (v["contract"].as<name>() == contract && v["treasurer"].as<name>() == treasurer && v["title"].as<name>() == title) {
if (v["contract"].as<name>() == contract && v["title"].as<name>() == title) {
return v;
}
}
Expand Down

0 comments on commit ff8aca3

Please sign in to comment.