Skip to content

Commit 718b9a9

Browse files
committed
base64 fix
1 parent 2f047d6 commit 718b9a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/identity-chaincode.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ func (t *IdentityChainCode) AddIdentity(stub shim.ChaincodeStubInterface, identi
503503
encryptedAttachmentURIString := identityParams[7]
504504
var encryptedAttachmentURI []byte
505505
if encryptedAttachmentURIString != "" {
506-
encryptedAttachmentURI, err = decodeBase64(identityParams[3])
506+
encryptedAttachmentURI, err = decodeBase64(identityParams[7])
507507
if err != nil {
508508
return nil, fmt.Errorf("Bad Encrypted AttachmentURI [%v] ", err)
509509
}

0 commit comments

Comments
 (0)