Skip to content

Commit

Permalink
fix(provider): fix metamask provider (#39)
Browse files Browse the repository at this point in the history
Description
---
Importing `tari.js` with the Metamask package `"@metamask/providers":
"^9.0.0"` caused TypeScript error in a not directly related piece of
code. To fix it bump package version and define `type Maybe<T> = T |
null | undefined;` in `MetamaskTariProvider` class.

Motivation and Context
---
Error getting while launching Tari Universe app.

![image](https://github.com/user-attachments/assets/663428b9-ff8f-4455-bd12-715ddc1efcba)


How Has This Been Tested?
---
Manually with local build.

What process can a PR reviewer use to test or verify this change?
---

<!-- Checklist -->
<!-- 1. Is the title of your PR in the form that would make nice release
notes? The title, excluding the conventional commit
tag, will be included exactly as is in the CHANGELOG, so please think
about it carefully. -->


Breaking Changes
---

- [x] None
- [ ] Requires data directory on base node to be deleted
- [ ] Requires hard fork
- [ ] Other - Please specify

<!-- Does this include a breaking change? If so, include this line as a
footer -->
<!-- BREAKING CHANGE: Description what the user should do, e.g. delete a
database, resync the chain -->
  • Loading branch information
karczuRF authored Jan 16, 2025
1 parent d2238a0 commit 376b52c
Show file tree
Hide file tree
Showing 3 changed files with 602 additions and 329 deletions.
Loading

0 comments on commit 376b52c

Please sign in to comment.