trozler

trozler

Member Since 3 years ago

new york.

Experience Points
15
follower
Lessons Completed
123
follow
Lessons Completed
138
stars
Best Reply Awards
36
repos

297 contributions in the last year

Pinned
⚡ A cli that allows users to retrieve information about their fantasy premier league teams, such as live league standings, points and team selection.
⚡ An article thats lets the user draw their own fourier epicycle. The site also gives a brief explanation of the mathematics connecting fourier series and revolving epicycles.
⚡ A short shell script that returns you your IPv4 address and its geolocation.
⚡ find 100k digits of pi in less than 60 seconds
Activity
Dec
1
4 days ago
started
started time in 4 days ago
Nov
25
1 week ago
Activity icon
fork

trozler forked ethereum/annotated-spec

⚡ Vitalik's annotated eth2 spec. Not intended to be "the" annotated spec; other documents like Ben Edgington's https://benjaminion.xyz/eth2-annotated-spec/ also exist. This one is intended to focus more on design rationale.
trozler Updated
fork time in 1 week ago
started
started time in 1 week ago
Nov
23
1 week ago
started
started time in 1 week ago
Oct
29
1 month ago
started
started time in 1 month ago
Oct
7
1 month ago
started
started time in 1 month ago
started
started time in 1 month ago
Oct
1
2 months ago
started
started time in 2 months ago
Sep
27
2 months ago
Activity icon
issue

trozler issue comment EthWorks/useDApp

trozler
trozler

Migrate to Multicall2 instead of Multicall

I had some problems when 1 of the calls in a multicall fails, and apparently that's fixed in Multicall2:

Multicall2 is the same as Multicall, but provides addition functions that allow calls within the batch to fail. Useful for situations where a call may fail depending on the state of the contract.

https://github.com/makerdao/multicall#multicall2-contract-addresses

Consider using Multicall2 in useDapp. I can even try sending a pull request myself if you agree with the "upgrade"

trozler
trozler

@maraoz @devloper-eth You can always specify the multicall2 addresses yourself !

  // Use multicall2 addresses.https://github.com/makerdao/multicall
  multicallAddresses: {
    [ChainId.Mainnet]: '0x5ba1e12693dc8f9c48aad8770482f4739beed696',
    [ChainId.Ropsten]: '0x5ba1e12693dc8f9c48aad8770482f4739beed696',
    [ChainId.Rinkeby]: '0x5ba1e12693dc8f9c48aad8770482f4739beed696',
    [ChainId.Goerli]: '0x5ba1e12693dc8f9c48aad8770482f4739beed696',
    [ChainId.Kovan]: '0x5ba1e12693dc8f9c48aad8770482f4739beed696',
  },

And then

const config = {
  readOnlyChainId: ChainId.Mainnet,
  readOnlyUrls: {
    [ChainId.Mainnet]: 'https://mainnet.infura.io/v3/dbec3d12a1d64dcf8fb6c6f4536be321',
    [ChainId.Hardhat]: 'http://localhost:8545',
  },
  // https://usedapp.readthedocs.io/en/latest/developer-tools.html?highlight=multicall#calls-updated
.
  multicallAddresses: {
    ...CONTRACT_ADDRESSES.multicallAddresses,
  },
  supportedChains: [
    ChainId.Mainnet,
    ChainId.Goerli,
    ChainId.Kovan,
    ChainId.Rinkeby,
    ChainId.Ropsten,
    ChainId.xDai,
    ChainId.Hardhat,
  ],
}

ReactDOM.render(
  <React.StrictMode>
    <DAppProvider config={config}>
      <App />
    </DAppProvider>
  </React.StrictMode>,
  document.getElementById('root')
)

Sep
20
2 months ago
Activity icon
created branch
createdAt 2 months ago
Activity icon
created repository
createdAt 2 months ago
Sep
18
2 months ago
Sep
14
2 months ago
Activity icon
issue

trozler issue comment EthWorks/useDApp

trozler
trozler

Cannot disconnect

After disconnect when the user refreshes the page The connection is still connected

trozler
trozler

Any idea on how to mitigate this ? Finding this to be quite annoying