mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-27 12:05:10 +00:00
Signed-off-by:Renjith KN <renjithkn@gmail.com>
Signed-off-by: renjithpta <renjithkn@gmail.com>
This commit is contained in:
parent
b97d9daa1d
commit
b20ad9572b
1 changed files with 4 additions and 12 deletions
|
|
@ -315,17 +315,9 @@ public class ERC721TokenContract implements ContractInterface {
|
|||
final String clientMSPID = ctx.getClientIdentity().getMSPID();
|
||||
final ChaincodeStub stub = ctx.getStub();
|
||||
|
||||
if (!clientMSPID.equalsIgnoreCase(ContractConstants.MINTER_ORG_MSP.getValue())) { // Check
|
||||
// minter
|
||||
// authorization
|
||||
// - this
|
||||
// sample
|
||||
// assumes
|
||||
// Org1 is the
|
||||
// issuer with
|
||||
// privilege
|
||||
// to mint a
|
||||
// new token
|
||||
|
||||
// Check minter authorization this sample assumes Org1 is the issuer with privilege to mint a new token
|
||||
if (!clientMSPID.equalsIgnoreCase(ContractConstants.MINTER_ORG_MSP.getValue())) {
|
||||
throw new ChaincodeException(
|
||||
"Client is not authorized to set the name and symbol of the token",
|
||||
ContractErrors.UNOTHERIZED_SENDER.toString());
|
||||
|
|
|
|||
Loading…
Reference in a new issue