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

retry for smart contract error #502

Closed
wants to merge 2 commits into from
Closed

retry for smart contract error #502

wants to merge 2 commits into from

Conversation

selvaprakash92
Copy link
Contributor

Type of change

  • Improvement (improvement to code, performance, etc)

Description

retry for smart contract error

Signed-off-by: selvaprakash92 <[email protected]>
@selvaprakash92 selvaprakash92 requested a review from a team as a code owner June 21, 2023 13:20
Copy link
Contributor

@dshuffma-ibm dshuffma-ibm left a comment

Choose a reason for hiding this comment

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

fix the lint warnings, and use triple equals

@@ -305,7 +305,18 @@ class PeerRestApi {
if (error.grpc_resp.statusMessage.indexOf('successfully installed') !== -1) {
Log.info(`smart contract already installed on peer "${peer.display_name}"`);
return {};
} else {
} else if (error.grpc_resp.statusMessage.indexOf('???') == 10){
Copy link
Contributor

Choose a reason for hiding this comment

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

use triple equals here

@selvaprakash92 selvaprakash92 closed this by deleting the head repository Jun 30, 2023
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

Successfully merging this pull request may close these issues.

2 participants