Skip to content
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

CPP合约开发文档Map示例问题 #28

Open
OoKurumi opened this issue Dec 23, 2020 · 1 comment
Open

CPP合约开发文档Map示例问题 #28

OoKurumi opened this issue Dec 23, 2020 · 1 comment

Comments

@OoKurumi
Copy link

OoKurumi commented Dec 23, 2020

文档里面CPP合约开发Map部分的示例中
char mapName[] = "students"; bcwasm::db::Map<mapName, std::string, Student_t> students;
这里students map应该定义在合约类中 否则在调用时,find、insert等方法中用到的3个wrappername不会进行初始化,为空值。导致key值与调用迭代器时访问的key不一致,导致无法找到key
希望将文档示例可以修改下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant