diff --git a/src/stores.js b/src/stores.js index e7e9cb5..6a4ce3c 100644 --- a/src/stores.js +++ b/src/stores.js @@ -39,9 +39,8 @@ const getWindowEthereum = () => { } } -// always get chainId as number EDIT: Always as hex +// always get chainId as hex (required since web3js 4.x.x) const alwaysHex = (n) => (Web3.utils.isHex(n) ? n : Web3.utils.toHex(n)) -// const alwaysHex = (n) => (Web3.utils.isHex(n) ? Web3.utils.hexToNumber(n) : n) export const createStore = () => { const { emit, get, subscribe, assign, deleteAll } = proxied()