Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
kairoski03 committed Nov 14, 2024
2 parents 5f70ab2 + 06060d0 commit e154826
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/components/sui/Deploy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,30 +219,29 @@ export const Deploy: React.FunctionComponent<InterfaceProps> = ({
})
.then((response) => {
console.log('Success (POST /sui/verifications): ', response.data);
console.log(`@@@ blob`, blob);
if (blob) {
console.log(`try walrus upload.`);
axios
.post('https://publisher.walrus-testnet.walrus.space/v1/store', blob, {
.put('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/v1/store): ',
'Success (PUT https://publisher.walrus-testnet.walrus.space/v1/store): ',
response.data,
);
})
.catch((error) => {
console.error(
'Error (POST https://publisher.walrus-testnet.walrus.space/v1/store):',
'Error (PUT 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/v1/store): Request completed',
'PUT https://publisher.walrus-testnet.walrus.space/v1/store): Request completed',
);
});
}
Expand Down

0 comments on commit e154826

Please sign in to comment.