Skip to content

Is the transaction context the same for any contract? #4198

Discussion options

You must be logged in to vote

Ledger keys written by a smart contract are scoped (or namespaced) within the channel's ledger by the name of their containing chaincode. Smart contracts packaged within a single chaincode share the same chaincode namespace. You need to either ensure that smart contracts within the same chaincode package don't inadvertently use the same ledger keys, or split your smart contracts into separate chaincode packages so their keys are contained within separate namespaces.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ArtyomVancyan
Comment options

Answer selected by ArtyomVancyan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants