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 sdk部署hello_world合约示例后无法使用控制台调用合约接口 #806

Open
RotaercAH opened this issue Dec 5, 2023 · 1 comment
Labels
bug Something isn't working v3.x

Comments

@RotaercAH
Copy link

当前的cpp sdk sample/deploy_hello代码中没有设置abi字段,使用该实例代码部署交易后调用合约接口时可能存在找不到abi的情况

deploy_hello.cpp中设置abi字段为空字符串

微信图片_20231130150700

在控制台查看区块内容,abi为空

微信图片_20231130151310

调用合约接口时报错 Abi is empty, please check contract abi exists.

微信图片_20231130150739

自己手动添加abi字段后,查看区块中已包含abi字段,但仍然无法调用abi接口,添加方式如下

微信图片_20231130151639
微信图片_20231130151713

建议在示例代码中添加abi字段,便于开发者学习如何使用cpp sdk部署合约后调用合约接口

@kyonRay
Copy link
Member

kyonRay commented Dec 12, 2023

感谢提出issue,后续会增加控制台自动编译同名合约的功能。示例中也将增加ABI的示例。

@kyonRay kyonRay added bug Something isn't working v3.x labels Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v3.x
Projects
None yet
Development

No branches or pull requests

2 participants