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

singleton fix #4278

Merged
merged 3 commits into from
Jul 2, 2018
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
2 changes: 1 addition & 1 deletion contracts/eosiolib/singleton.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ namespace eosio {
T get_or_create( account_name bill_to_account, const T& def = T() ) {
auto itr = _t.find( pk_value );
return itr != _t.end() ? itr->value
: _t.emplace(bill_to_account, [&](row& r) { r.value = def; });
: _t.emplace(bill_to_account, [&](row& r) { r.value = def; })->value;
}

void set( const T& value, account_name bill_to_account ) {
Expand Down