Skip to content

Commit

Permalink
fix StakingCard.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Oct 29, 2024
1 parent 9d7a98c commit d7ddc41
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions apps/wallet/src/ui/app/staking/stake/StakingCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,18 @@ function StakingCard() {
// });
try {
const transactionBlock = createStakeTransaction(amount, validatorAddress);
return await signer.signAndExecuteTransaction({
const tx = await signer.signAndExecuteTransaction({
transactionBlock,
options: {
showInput: true,
showEffects: true,
showEvents: true,
},
});
await signer.client.waitForTransaction({
digest: tx.digest

Check failure on line 133 in apps/wallet/src/ui/app/staking/stake/StakingCard.tsx

View workflow job for this annotation

GitHub Actions / turborepo / Lint, Build, and Test

Insert `,`
})

Check failure on line 134 in apps/wallet/src/ui/app/staking/stake/StakingCard.tsx

View workflow job for this annotation

GitHub Actions / turborepo / Lint, Build, and Test

Insert `;`
return tx

Check failure on line 135 in apps/wallet/src/ui/app/staking/stake/StakingCard.tsx

View workflow job for this annotation

GitHub Actions / turborepo / Lint, Build, and Test

Insert `;`
} finally {
// sentryTransaction.finish();
}
Expand All @@ -151,14 +155,18 @@ function StakingCard() {
// name: 'stake',
// });
const transactionBlock = createUnstakeTransaction(stakedIotaId);
return await signer.signAndExecuteTransaction({
const tx = await signer.signAndExecuteTransaction({
transactionBlock,
options: {
showInput: true,
showEffects: true,
showEvents: true,
},
});
await signer.client.waitForTransaction({
digest: tx.digest

Check failure on line 167 in apps/wallet/src/ui/app/staking/stake/StakingCard.tsx

View workflow job for this annotation

GitHub Actions / turborepo / Lint, Build, and Test

Insert `,`
})

Check failure on line 168 in apps/wallet/src/ui/app/staking/stake/StakingCard.tsx

View workflow job for this annotation

GitHub Actions / turborepo / Lint, Build, and Test

Insert `;`
return tx

Check failure on line 169 in apps/wallet/src/ui/app/staking/stake/StakingCard.tsx

View workflow job for this annotation

GitHub Actions / turborepo / Lint, Build, and Test

Insert `;`
// finally {
// sentryTransaction.finish();
// }
Expand Down

0 comments on commit d7ddc41

Please sign in to comment.