diff --git a/src/dashboard/src/pages/ChainCode/ChainCode.js b/src/dashboard/src/pages/ChainCode/ChainCode.js index 019f3cf6e..254116c8c 100644 --- a/src/dashboard/src/pages/ChainCode/ChainCode.js +++ b/src/dashboard/src/pages/ChainCode/ChainCode.js @@ -105,7 +105,7 @@ const UploadChainCode = props => { id: 'app.chainCode.form.create.file', defaultMessage: 'Package', })} - name="chaincodePackage" + name="file" getValueFromEvent={normFile} rules={[ { diff --git a/src/dashboard/src/services/chaincode.js b/src/dashboard/src/services/chaincode.js index 10902b3aa..3bc417fd6 100644 --- a/src/dashboard/src/services/chaincode.js +++ b/src/dashboard/src/services/chaincode.js @@ -7,7 +7,7 @@ export async function listChainCode(params) { } export async function uploadChainCode(params) { - return request('/api/v1/chaincodes/package', { + return request('/api/v1/chaincodes/chaincodeRepo', { method: 'POST', body: params, });