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

A problem when update the contract. #1076

Open
csb123452010 opened this issue Jul 19, 2023 · 0 comments
Open

A problem when update the contract. #1076

csb123452010 opened this issue Jul 19, 2023 · 0 comments

Comments

@csb123452010
Copy link

The first image shows the deployment of the go-version basic chaincode in testnetwork. You can see that the command is "chaincode peer. add..," and the query is correct.
The second image shows the deployment of the Java-version basic chaincode after the contract upgrade, and you can see that the command is "/root/chaincode jav...".
At this point, there will be problems when querying all assets, as seen in image 3.
But the data is still in the database, as seen in image 4.

合约升级1
合约升级2
合约升级3
合约升级4

The answer I received is:

This is probably because go-version chaincode and Java-version chaincode use different key names in Asset's JSON format.

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