Skip to content

Commit

Permalink
[sui] fix walrus api url
Browse files Browse the repository at this point in the history
  • Loading branch information
kairoski03 committed Nov 14, 2024
1 parent 30db95c commit bb299bd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/sui/Deploy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,26 +223,26 @@ export const Deploy: React.FunctionComponent<InterfaceProps> = ({
if (blob) {
console.log(`try walrus upload.`);
axios
.post('https://publisher.walrus-testnet.walrus.space', blob, {
.post('https://publisher.walrus-testnet.walrus.space/v1/store', blob, {
headers: {
'Content-Type': 'application/octet-stream',
},
})
.then((response) => {
console.log(
'Success (POST https://publisher.walrus-testnet.walrus.space): ',
'Success (POST https://publisher.walrus-testnet.walrus.space/v1/store): ',
response.data,
);
})
.catch((error) => {
console.error(
'Error (POST https://publisher.walrus-testnet.walrus.space):',
'Error (POST https://publisher.walrus-testnet.walrus.space/v1/store):',
error.response ? error.response.data : error.message,
);
})
.finally(() => {
console.log(
'POST https://publisher.walrus-testnet.walrus.space): Request completed',
'POST https://publisher.walrus-testnet.walrus.space/v1/store): Request completed',
);
});
}
Expand Down

0 comments on commit bb299bd

Please sign in to comment.