Skip to content

Commit

Permalink
Update EIP-6963: Remove Object.freeze from Dapp implementation exampl…
Browse files Browse the repository at this point in the history
Merged by EIP-Bot.
  • Loading branch information
glitch-txs committed Jun 14, 2023
1 parent d0f0942 commit 63c5406
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EIPS/eip-6963.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ function onPageLoad() {
};
window.dispatchEvent(
new CustomEvent("eip6963:announceProvider", {
detail: { info, provider },
detail: Object.freeze({ info, provider }),
})
);
}
Expand All @@ -224,7 +224,7 @@ function onPageLoad(): EIP6963ProviderDetail[] => {
window.addEventListener(
"eip6963:announceProvider",
(event: EIP6963AnnounceProviderEvent) => {
providers.push(Object.freeze(event.detail));
providers.push(event.detail);
}
);

Expand Down

0 comments on commit 63c5406

Please sign in to comment.