Releases: D3Portillo/usemetamask
Releases · D3Portillo/usemetamask
v0.2.0
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
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
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
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
Fixes
- timeOut ref is being cleared per hook invocation.