Skip to content

Commit

Permalink
fix: update burrow registration_only to false
Browse files Browse the repository at this point in the history
  • Loading branch information
naturexie committed Jan 14, 2025
1 parent 5bcbb2c commit b8008a0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion screens/Trading/components/ClosePositionMobile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ const ClosePositionMobile: React.FC<IClosePositionMobileProps> = ({
});

const txHash = await handleTransactionHash(transactionHashes);

// TODOXX
await Promise.all(
txHash
.filter((item) => item.hasStorageDepositClosePosition)
Expand Down
2 changes: 1 addition & 1 deletion screens/Trading/components/ConfirmMobile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ const ConfirmMobile: React.FC<IConfirmMobileProps | any> = ({
}
return item.transaction.hash;
});

// TODOXX
const txHash = await handleTransactionHash(transactionHashes);
await Promise.all(
txHash
Expand Down
1 change: 1 addition & 0 deletions screens/Trading/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ const Trading = () => {
};

useEffect(() => {
// TODOXX
if (query?.transactionHashes) {
(async () => {
const txHash = await handleTransactionHash(query?.transactionHashes);
Expand Down
2 changes: 1 addition & 1 deletion store/tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export const prepareAndExecuteTransactions = async (
{
methodName: ChangeMethodsLogic[ChangeMethodsLogic.storage_deposit],
args: {
registration_only: true,
registration_only: false,
account_id: account.accountId,
},
attachedDeposit: new BN(expandToken(deposit, NEAR_DECIMALS)),
Expand Down

0 comments on commit b8008a0

Please sign in to comment.