You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.
Problem:
When running the upgrade command from the command palette, if there are no contracts, we get the following errors:
Local runtime has no instantiated chaincodes
Cannot read property 'data' of undefined
Cause
initialSmartContract is assumed to be valid in the upgrade command.
Possible fix
Error number 1 is not thrown, so we can't catch it. We can evaluate if initialSmartContract is undefined, and if so do something appropriate (possibly abort).
The text was updated successfully, but these errors were encountered:
Fixed the error so it will exit out of the command when no smart contracts
Fixed the message as it mentioned Local runtime rather than environment name
Fixed erorr message when no contracts in a gateway to choose from as that also mentioned local runtime
closes#1970
Signed-off-by: Caroline Fletcher <cazfletch@gmail.com>
Problem:
When running the upgrade command from the command palette, if there are no contracts, we get the following errors:
Cause
initialSmartContract is assumed to be valid in the upgrade command.
Possible fix
Error number 1 is not thrown, so we can't catch it. We can evaluate if initialSmartContract is undefined, and if so do something appropriate (possibly abort).
The text was updated successfully, but these errors were encountered: