-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't batch a single call #1184
Conversation
Visit the preview URL for this PR (updated for commit 64fa8b6): https://astar-apps--pr1184-fix-dont-batch-singl-rcaxdmgk.web.app (expires Tue, 20 Feb 2024 18:54:10 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: dd76fe72958fe2910fef9d53f0b4539b82b849db |
@@ -397,7 +397,7 @@ export class DappStakingRepository implements IDappStakingRepository { | |||
public async batchAllCalls(calls: ExtrinsicPayload[]): Promise<ExtrinsicPayload> { | |||
const api = await this.api.getApi(); | |||
|
|||
return api.tx.utility.batchAll(calls); | |||
return calls.length == 1 ? calls[0] : api.tx.utility.batchAll(calls); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return calls.length == 1 ? calls[0] : api.tx.utility.batchAll(calls); | |
return calls.length === 1 ? calls[0] : api.tx.utility.batchAll(calls); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, fixed in f0b1042
@bobo-k2 could we add unstoppable image on this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* Enable dApp staking v3 on Astar (#1182) * Add text ellipsis to the dApp cards (#1186) * add text ellipsis to the dapp card * update * Revert "update" This reverts commit 29c7d3f. * fix the arrow style of the ads section * fix builders card layout * fix dapp page short description * Don't batch a single call (#1184) * Don't batch a single call * Ubstoppable grants background * Min staking amount warning condition fix * Code review update * Category title padding fix * Fix for min staking amount warning (#1191) --------- Co-authored-by: Ayumi Takahashi <[email protected]>
Pull Request Summary
This PR contains the following:
Check list