diff --git a/fabric-client/lib/packager/Lifecycle.js b/fabric-client/lib/packager/Lifecycle.js index c63f1aa9c4..1ca4261ff7 100644 --- a/fabric-client/lib/packager/Lifecycle.js +++ b/fabric-client/lib/packager/Lifecycle.js @@ -85,7 +85,7 @@ class LifecyclePackager extends BasePackager { const descriptors = []; const packageDescriptor = { bytes: bytes, - name: 'Chaincode-Package.tar.gz' + name: 'code.tar.gz' }; descriptors.push(packageDescriptor); diff --git a/fabric-client/test/packager/ALifecycle.js b/fabric-client/test/packager/ALifecycle.js index 75f63c5603..5460048492 100644 --- a/fabric-client/test/packager/ALifecycle.js +++ b/fabric-client/test/packager/ALifecycle.js @@ -68,12 +68,12 @@ describe('Lifecycle Packager', () => { describe('#buildPackageDescriptors', () => { it('should return a list of descriptors for the package', async () => { const descriptors = await lifecycle.buildPackageDescriptors(Buffer.from('abc')); - expect(descriptors[0].name).to.equal('Chaincode-Package.tar.gz'); + expect(descriptors[0].name).to.equal('code.tar.gz'); }); it('should return an empty descriptor when no content provided', async () => { const descriptors = await lifecycle.buildPackageDescriptors(); - expect(descriptors[0].name).to.equal('Chaincode-Package.tar.gz'); + expect(descriptors[0].name).to.equal('code.tar.gz'); }); }); });