Skip to content

Commit

Permalink
Start dgood 1 (#25)
Browse files Browse the repository at this point in the history
* ids start from 1 instead of 0

* update build files
  • Loading branch information
cthacker authored Jan 22, 2020
1 parent 3f29ab7 commit d668f41
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified build/dgoods/dgoods.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion src/dgoods.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ACTION dgoods::setconfig(const symbol_code& sym, const string& version) {

// can only have one symbol per contract
config_index config_table(get_self(), get_self().value);
auto config_singleton = config_table.get_or_create( get_self(), tokenconfigs{ "dgoods"_n, version, sym, 0, 0 } );
auto config_singleton = config_table.get_or_create( get_self(), tokenconfigs{ "dgoods"_n, version, sym, 1, 1 } );

// setconfig will always update version when called
config_singleton.version = version;
Expand Down

0 comments on commit d668f41

Please sign in to comment.