Skip to content

Fix memory leak - #257

Merged
h0ngcha0 merged 4 commits into
masterfrom
fix-memory-leak
Jun 23, 2026
Merged

Fix memory leak#257
h0ngcha0 merged 4 commits into
masterfrom
fix-memory-leak

Conversation

@nop33

@nop33 nop33 commented Jun 22, 2026

Copy link
Copy Markdown
Member
  • Fix memory leak by removing event listeners on reject
  • Update allowed hasher

@nop33
nop33 requested a review from h0ngcha0 June 22, 2026 15:01
@@ -0,0 +1,6 @@
import { MessageHasher } from "@alephium/web3"

export const SAFE_DAPP_MESSAGE_HASHER = "alephium"

@h0ngcha0 h0ngcha0 Jun 23, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This would disable Nostr injection, which uses the sha256 hasher.

If it is ok to remove Nostr support, then it shouldn't be a problem.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

sha256 should be okay to be kept since it's not used for tx building

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Pushed

@nop33
nop33 requested a review from h0ngcha0 June 23, 2026 07:31

@h0ngcha0 h0ngcha0 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@h0ngcha0
h0ngcha0 merged commit 85ee1a1 into master Jun 23, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants