Quantcast
Channel: chaincode argument error: unexpected end of JSON input - Stack Overflow
Viewing all articles
Browse latest Browse all 4

Answer by Badr Bellaj for chaincode argument error: unexpected end of JSON input

$
0
0

In same cases, this error is generated by

const stateValue = await ctx.stub.getState(state); 

when the state does not exist.

In other cases, it is becauseevaluateTransaction is used instead of submitTransaction when reading states


Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>