Skip to content

Conversation

@sonytooo
Copy link
Collaborator

@sonytooo sonytooo commented Dec 16, 2025

  • Move the signAccountOp ctrl in the calls request and remove it from the MainController
  • Added logic to the signAccountOp ctrl to set a default fee token on init to improve the load performance on SignAccountOp screen open

Comment on lines 2416 to 2420
if (this.#signAccountOpController?.broadcastStatus === 'SUCCESS') {
setTimeout(() => {
this.resetForm()
}, 0)
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can move the emit update to an else statement to prevent double emits

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An update is required, followed by another one on the next tick to receive the last update from the signAccountOpController before the resetForm func destroys it. It is just a workaround because the onUpdate with forceEmitUpdates does not work properly in controllers and it is a temp fix until we find a solution of the problem with the event emitter

Comment on lines 911 to 915

if (this.signAccountOpController?.broadcastStatus === 'SUCCESS') {
setTimeout(() => {
this.resetForm()
}, 0)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can move the emit update to an else statement to prevent double emits

@sonytooo sonytooo marked this pull request as ready for review January 7, 2026 10:20
Copy link
Member

@PetromirDev PetromirDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job 👏

@sonytooo sonytooo merged commit a6264b1 into v2 Jan 8, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants