Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should update web3 (toWei errors in minified builds only) #410

Closed
ixv opened this issue Mar 11, 2020 · 11 comments · Fixed by #584
Closed

Should update web3 (toWei errors in minified builds only) #410

ixv opened this issue Mar 11, 2020 · 11 comments · Fixed by #584

Comments

@ixv
Copy link

ixv commented Mar 11, 2020

image

@reitraced
Copy link

it seems from what ive heard in discord this happens on all eth transactions right now.

this same kind of issue was also present in the release build on github in v2.3.3

@reitraced
Copy link

the solution ive been reccomending to people has been to try using v1.4.1 since i dont think azimuth has changed since then and it should work for most stuff

@vvisigoth
Copy link
Contributor

vvisigoth commented Mar 11, 2020 via email

@vvisigoth
Copy link
Contributor

@reitraced I generally accept invites, transfer, accept transfers (10x/week) with no issues. Have you heard of anyone hitting issues doing that? Or is it only setting/resetting networking keys?

@reitraced
Copy link

@reitraced I generally accept invites, transfer, accept transfers (10x/week) with no issues. Have you heard of anyone hitting issues doing that? Or is it only setting/resetting networking keys?

most of the issues ive seen on discord are with reticketing, breaching, or setting keys.

@Fang-
Copy link
Member

Fang- commented Mar 11, 2020

Able to repro this on deployed versions, but not when running locally. Investigating further...

@vvisigoth
Copy link
Contributor

I was able to repro on a locally built one.

@Fang-
Copy link
Member

Fang- commented Mar 11, 2020

Good god...

The issue seems to go away when running a non-minimized build. It does occur for production, and locally run builds, but doesn't occur for npm run pilot and local builds without minimization.

I'm... gonna go ahead and push a non-minimized build to prod to help resolve this. We should probably be brave and investigate why minimizing the JS borks these functions.

@Fang-
Copy link
Member

Fang- commented Mar 11, 2020

(For those following along: deploy done. Look for v2.3.4-2 in the bottom right corner of the landing page.)

@Fang- Fang- changed the title Issue when trying to breach toWei errors in minified builds only Mar 11, 2020
@pkova
Copy link
Contributor

pkova commented Mar 11, 2020

The problem is discussed here and fixed here. toWei checks the constructor.name of the argument to see whether its argument is a BN, which webpack mangles.

In other words just javascript things.

Can't really think of a sane way to fix this without upgrading web3-utils, which is spooky. Couldn't find any webpack options to disable mangling of specific classes either.

@Fang-
Copy link
Member

Fang- commented Mar 11, 2020

Good refs, thanks a bunch @pkova. We should probably look into upgrading web3-utils, then. Hope they went easy with the breaking changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants