tbfleming / eos-game-of-life

Conway's Game of Life in a contract
13 stars 7 forks source link

table "boards" doesn't exist #2

Open str11ngfello opened 6 years ago

str11ngfello commented 6 years ago

Hi. Thanks for the game example. I'm running Dawn 3 and the step function complains that table "boards" isn't there. I notice in Dawn 3 examples there's a "@abi table" directive that marks tables. Does this code need to be updated for Dawn 3?

Thanks!

executed transaction: 36e4506e68b95ad84c1d843822eac31aee33868f79417a4e7dc32d3a20b2900b 240 bytes 262144 cycles

lynn <= lynn::step {"user":"lynn","game":"bar"}

Error 3010003: Contract Table Query Exception Most likely, the given table doesnt' exist in the blockchain. Error Details: Table boards is not specified in the ABI ^CLowells-MacBook-Pro:basics lowellduke$

tbfleming commented 6 years ago

This is Dawn 3 code, but has a manually-written .abi file instead of directives. Don't use eosiocpp's -g option since it overwrites the .abi.