mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
use existing const instead of local string (#815)
Signed-off-by: Stefan Obermeier <st.obermeier@seeburger.de> Signed-off-by: Stefan Obermeier <st.obermeier@seeburger.de>
This commit is contained in:
parent
1e8fd5cd56
commit
cd4db0bc8b
1 changed files with 1 additions and 1 deletions
|
|
@ -811,7 +811,7 @@ func (s *SmartContract) Initialize(ctx contractapi.TransactionContextInterface,
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return false, fmt.Errorf("failed to get MSPID: %v", err)
|
return false, fmt.Errorf("failed to get MSPID: %v", err)
|
||||||
}
|
}
|
||||||
if clientMSPID != "Org1MSP" {
|
if clientMSPID != minterMSPID {
|
||||||
return false, fmt.Errorf("client is not authorized to initialize contract")
|
return false, fmt.Errorf("client is not authorized to initialize contract")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue