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

Fix in iroha-cpp library + added example of few transactions (HL branch -> develop) #3148

Merged
merged 5 commits into from Mar 19, 2023

Conversation

baziorek
Copy link
Member

Signed-off-by: Grzegorz Bazior g.bazior@yodiss.pl

Description of the Change

I noticed that in examples queries were not working - after some time of investigation I noticed that counter must be greated than 0, but default value is 0. So I changed into 1. Also I added another example file with error checking (it was my first time with GRPC in C++ so there can be errors)

Issue

Benefits

Good example for somebody who wants to start developing Iroha 1 with iroha-cpp-lib + fix

Possible Drawbacks

I don't know what counter is:D.

Usage Examples or Tests [optional]

make irohalib_domainassetcreation_example

Alternate Designs [optional]

Signed-off-by: Grzegorz Bazior <g.bazior@yodiss.pl>
iroha-lib/model/Query.hpp Show resolved Hide resolved
iroha-lib/examples/DomainAssetCreation.cpp Outdated Show resolved Hide resolved
iroha-lib/examples/DomainAssetCreation.cpp Outdated Show resolved Hide resolved
iroha-lib/examples/DomainAssetCreation.cpp Outdated Show resolved Hide resolved
iroha-lib/examples/DomainAssetCreation.cpp Outdated Show resolved Hide resolved
@Arjentix Arjentix self-assigned this Mar 14, 2023
iroha-lib/examples/CMakeLists.txt Outdated Show resolved Hide resolved
iroha-lib/examples/CMakeLists.txt Show resolved Hide resolved
iroha-lib/examples/DomainAssetCreation.cpp Show resolved Hide resolved
iroha-lib/examples/DomainAssetCreation.cpp Outdated Show resolved Hide resolved
iroha-lib/examples/DomainAssetCreation.cpp Outdated Show resolved Hide resolved
iroha-lib/examples/DomainAssetCreation.cpp Outdated Show resolved Hide resolved
iroha-lib/examples/DomainAssetCreation.cpp Outdated Show resolved Hide resolved
iroha-lib/examples/DomainAssetCreation.cpp Outdated Show resolved Hide resolved
iroha-lib/examples/DomainAssetCreation.cpp Outdated Show resolved Hide resolved
iroha-lib/model/Query.hpp Outdated Show resolved Hide resolved
@appetrosyan
Copy link
Contributor

@baziorek You should also amend the sign-offs on the commits. We can't merge without DCO.

Copy link
Member Author

@baziorek baziorek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After correcting some suggestions I noticed that You added more recently. I'll try to correct them all in next commit:)

@baziorek baziorek force-pushed the iroha-cpp-lib-fix-examples branch 2 times, most recently from 9d3b6b1 to 0e7f156 Compare March 18, 2023 12:57
baziorek and others added 4 commits March 18, 2023 14:04
Co-authored-by: Aleksandr Petrosyan <a-p-petrosyan@yandex.ru>
Signed-off-by: G. Bazior <gbaz@o2.pl>
Signed-off-by: Grzegorz Bazior <g.bazior@yodiss.pl>
Signed-off-by: Grzegorz Bazior <g.bazior@yodiss.pl>
Signed-off-by: Grzegorz Bazior <g.bazior@yodiss.pl>
Signed-off-by: Grzegorz Bazior <g.bazior@yodiss.pl>
@baziorek
Copy link
Member Author

@appetrosyan @Arjentix Thanks for all your suggestions. It looks that I was able to fix them, expect for:
#3148 (comment) - here I have extra question.

Also all commits looks signed:
image

Please let me know if You have any more comments to correct:).

@appetrosyan appetrosyan merged commit fd0d5dd into develop Mar 19, 2023
@appetrosyan appetrosyan deleted the iroha-cpp-lib-fix-examples branch April 25, 2023 09:19
@nxsaken nxsaken added the iroha1 The legacy version of Iroha. label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.x 1.5 Bug Something isn't working CLI iroha1 The legacy version of Iroha. queries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants