Skip to content

Commit

Permalink
Merge pull request #607 from xiaor2/xiaor2
Browse files Browse the repository at this point in the history
Connected the chaincode's upload function
  • Loading branch information
xiaor2 authored Apr 6, 2024
2 parents b79e974 + c2a6cdf commit ccb09a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dashboard/src/pages/ChainCode/ChainCode.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const UploadChainCode = props => {
id: 'app.chainCode.form.create.file',
defaultMessage: 'Package',
})}
name="chaincodePackage"
name="file"
getValueFromEvent={normFile}
rules={[
{
Expand Down
2 changes: 1 addition & 1 deletion src/dashboard/src/services/chaincode.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

0 comments on commit ccb09a7

Please sign in to comment.