Skip to content

Releases: D3Portillo/usemetamask

v0.2.0

21 Jun 04:06
Compare
Choose a tag to compare

Fixes

  • fix(useTokenPrice ~ 8806c8a): Hook now stores timer to a ref and cleans it at unmount
  • fix(addEtherNetwork ~ be9a078): Ensure to return a Promise like function instead of void

Changes

  • getFIATBalance has been renamed to getFIATValue
  • formatEther has a better formatting logic now ~ 3579f4c

v0.1.5

18 Jun 21:09
Compare
Choose a tag to compare

Fixes

  • Parse module now returns consistent values as web3 ether.
  • toWei now returns a string like number instead of raw number. (As expected to be used in web3 ether)
  • Now helpers expect number like params instead of just numbers/strings. See b8a8f6f

v0.1.4

15 Jun 18:15
Compare
Choose a tag to compare

Fixes

  • setError if no metamask at first render 6a4630d
    • Now hook will set error METAMASK_NOT_INSTALLED at first
      render
    • Intead of doing metasmask.request per hook mount it'll
      validate for an existent address and return that one
  • Only render memoizedState.balance if user isConnected ad03da7

v0.1.3

14 Jun 22:57
Compare
Choose a tag to compare

Changes

  • fix(internals.ts): ensure _metamask is exposed in window.ethereum object - ab3b07c
  • fix(useMetamask.ts): only invoke hookCleanerFn if it's defined and a Function - 7e84a1b

v0.1.2

11 Jun 12:06
Compare
Choose a tag to compare

Fixes

  • timeOut ref is being cleared per hook invocation.