Skip to content

Commit

Permalink
Connected the chaincode's upload function to the backend
Browse files Browse the repository at this point in the history
Signed-off-by: xiaor2 <xiaor2@illinois.edu>
  • Loading branch information
xiaor2 committed Apr 6, 2024
1 parent 2ece3f7 commit e8aafa9
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 e8aafa9

Please sign in to comment.