-
Notifications
You must be signed in to change notification settings - Fork 289
Conversation
examples/kv_tests/src/kvtest.cpp
Outdated
require_auth(_self); | ||
kvtest_table table{"kvtest"_n}; | ||
|
||
uint64_t id = 1; |
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.
Please check tab character here and below.
examples/kv_tests/src/kvtest.cpp
Outdated
auto itr = table.id.find(id); | ||
if (itr != table.id.end()) { | ||
std::string val = itr.value().data; | ||
eosio::check(val.compare(data + std::to_string(id)), "The value for the key " + std::to_string(id) + " is " + val); |
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.
val can be 8MB string too big to print.
examples/kv_tests/README.txt
Outdated
@@ -0,0 +1,16 @@ | |||
--- kv_addr_book Project --- |
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.
Wrong project name?
examples/kv_tests/src/kvtest.cpp
Outdated
@@ -0,0 +1,60 @@ | |||
#include <eosio/eosio.hpp> | |||
#include <eosio/asset.hpp> |
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.
Do you have to include this?
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.
Yes. I used eosio::check in the code.
A couple of observations:
|
Change Description
API Changes
Documentation Additions