-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backport cleos optional support #734
Conversation
…set_optional Cleos support for set<optional<T>> and vector<optional<T>>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a whitespace change
#define SETCONTAINERVAL(x) do { \ | ||
require_auth(user); \ | ||
psninfoindex2 tblIndex(get_self(), get_first_receiver().value); \ | ||
auto iter = tblIndex.find(user.value); \ | ||
if (iter == tblIndex.end()) \ | ||
{ \ | ||
tblIndex.emplace(user, [&](auto &row) { \ | ||
row.key = user; \ | ||
row.x = x; \ | ||
}); \ | ||
} \ | ||
else \ | ||
{ \ | ||
tblIndex.modify(iter, user, [&]( auto& row ) { \ | ||
row.x = x; \ | ||
}); \ | ||
} \ | ||
}while(0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The spacing on this macro should be fixed up to fit our normal styling.
finally: | ||
TestHelper.shutdown(cluster, walletMgr, testSuccessful, killEosInstances, killWallet) | ||
|
||
exit(0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this needs to check testSuccessful
for the proper error code?
I don't have time at the moment to do a full look over, but the one issue I mentioned before is fixed so dismissing the block
Backport of changes to support nested optional.
Resolves: #778