Skip to content

Commit

Permalink
feat(dcellar-web-ui): fix createTmpAccount params
Browse files Browse the repository at this point in the history
  • Loading branch information
aiden-cao committed Aug 9, 2023
1 parent 5e592d9 commit b824531
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions apps/dcellar-web-ui/src/modules/upload/UploadObjects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,12 @@ export const UploadObjects = memo<UploadObjectsProps>(function UploadObjects() {
Number(amount) * 1.05 > Number(availableBalance)
? round(Number(availableBalance), 6)
: round(Number(amount) * 1.05, 6);
const [tmpAccount, error] = await createTmpAccount(
{
address: loginAccount,
bucketName,
amount: parseEther(String(safeAmount)).toString(),
},
const [tmpAccount, error] = await createTmpAccount({
address: loginAccount,
bucketName,
amount: parseEther(String(safeAmount)).toString(),
connector,
);
});
if (!tmpAccount) {
return errorHandler(error);
}
Expand Down

0 comments on commit b824531

Please sign in to comment.