Skip to content

Commit

Permalink
Fix outcommented code and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Crelde committed Jul 16, 2023
1 parent 66d53d8 commit 9e5fe42
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/stores.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9e5fe42

Please sign in to comment.