Comments (3)
I assume your talking about the code located here. The chaincode looks good! I suspect one of the parameters for configuring the chaincode in app.js is wrong. Could you please verify that your chaincode configuration looks like this:
chaincode: {
zip_url: 'https://github.com/xinhan1989/ziptest/archive/test.zip',
unzip_dir: 'ziptest-test',
git_url: 'https://github.com/xinhan1989/ziptest'
}
from cp-chaincode-v2.
Yup, that's the code I'm talking about. the app.js does indeed look exactly like that, would there be anything else I'd need to add to it? From the logs I can see that the chaincode gets downloaded, unzipped and can read the files (I can see logs like [ibc-js] Found cc invoke function: createAccounts
). but when it gets to the deploy function in the ibc it seems to simply suddenly produce the error I mentioned at the top. Currently reading through the IBM blockchain code to see if I can pinpoint where the error is generated but having trouble.
thanks for the help by the way!
Cheers,
William
from cp-chaincode-v2.
Hi Gari,
I've tried using integers as well, but still the same problem. I doubt it is the chain code itself as simply using the exact chain code but from a different github gives me this error.
Cheers,
William Lau
On Apr 12, 2016, at 10:01 PM, Gari Singh [email protected] wrote:
@xinhan1989 - the error is most likely caused by the fact your chaincode does not exactly compile. I believe that owner.Quantity is actually typed as an integer not a float. Go does not do implicit type conversions. Can you try changing owner.Quantity = 100.0 to owner.Quantity = 100
―
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
from cp-chaincode-v2.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cp-chaincode-v2.