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

Fix suggested gas price in trasaction for ui production build #222

Merged
merged 2 commits into from
Oct 25, 2019

Conversation

patitonar
Copy link
Contributor

When using the production build of the UI it was found that a huge number was suggested as gas price for the transaction.
image

The problem is present only in the production build of the UI, the toHex method of web3-utils returns a wrong result only in the production build when the number provided is of the type bn.js which is used by web3.

Example of result in dev build: 0x12a05f200
Example of result in production build: 0x2231326130356632303022

There is an issue created but it was not solved web3/web3.js#2775.

Passing the value as string works as workaround and avoids this problem.

@patitonar patitonar requested a review from akolotov October 23, 2019 19:14
@patitonar patitonar self-assigned this Oct 23, 2019
@patitonar
Copy link
Contributor Author

Updated chrome driver version used in e2e tests that was failing.

The reason the issue with toHex wasn't detected by the e2e tests is because we are using the development build of the UI, I think we should create an issue to implement the changes to use the production build of the UI app in order to detect situations like this.

@akolotov akolotov merged commit 1d79cf8 into develop Oct 25, 2019
@akolotov akolotov deleted the fix-ui-production-build-suggested-gas-price branch October 25, 2019 12:38
akolotov added a commit that referenced this pull request Nov 12, 2019
…230

* Support alternative receiver in Oracle (#221)
* Support alternative receiver feature in Monitor (#223)
* Support token migration (#224)
* Fix suggested gas price in transaction for ui production build (#222)
* Updated links to new repo with tokenbridge contracts (#226)
* Update the contract's submodule to the release 3.2.0 (#228)
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 this pull request may close these issues.

2 participants