diff --git a/Cargo.lock b/Cargo.lock index d9891668b..d4504a278 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1249,7 +1249,7 @@ dependencies = [ [[package]] name = "parity-ui-precompiled" version = "1.4.0" -source = "git+https://github.com/ethcore/js-precompiled.git#3a77750a2d29e2babb52bc4dfa5c40b2e26b97ce" +source = "git+https://github.com/ethcore/js-precompiled.git#cb99e22b536486190f3e19b2760e1142096b5fd7" dependencies = [ "parity-dapps-glue 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", ] diff --git a/js/package.json b/js/package.json index 4f441f328..36d5a4250 100644 --- a/js/package.json +++ b/js/package.json @@ -1,6 +1,6 @@ { "name": "parity.js", - "version": "0.1.61", + "version": "0.1.63", "main": "release/index.js", "jsnext:main": "src/index.js", "author": "Parity Team ", diff --git a/js/scripts/release.sh b/js/scripts/release.sh index 0fab71e2c..fd95e00b8 100755 --- a/js/scripts/release.sh +++ b/js/scripts/release.sh @@ -57,7 +57,6 @@ if [ "$BRANCH" == "master" ]; then npm version patch echo "*** Building packages for npmjs" - cd js # echo -e "$NPM_USERNAME\n$NPM_PASSWORD\n$NPM_EMAIL" | npm login echo "$NPM_TOKEN" >> ~/.npmrc npm run ci:build:npm @@ -65,7 +64,7 @@ if [ "$BRANCH" == "master" ]; then echo "*** Publishing $PACKAGE to npmjs" cd .npmjs npm publish --access public - cd .. + cd ../.. fi echo "*** Updating cargo parity-ui-precompiled#$PRECOMPILED_HASH" diff --git a/js/src/modals/Transfer/GasPriceSelector/gasPriceSelector.js b/js/src/modals/Transfer/GasPriceSelector/gasPriceSelector.js index 0dcee8f9d..adf644c4e 100644 --- a/js/src/modals/Transfer/GasPriceSelector/gasPriceSelector.js +++ b/js/src/modals/Transfer/GasPriceSelector/gasPriceSelector.js @@ -539,7 +539,7 @@ export default class GasPriceSelector extends Component { const gasPriceBIdx = gasPriceAIdx + 1; if (gasPriceBIdx === N + 1) { - const gasPrice = gasPrices[gasPriceAIdx]; + const gasPrice = gasPrices[gasPriceAIdx].round(); this.props.onChange(event, gasPrice); return; } @@ -548,7 +548,9 @@ export default class GasPriceSelector extends Component { const gasPriceB = gasPrices[gasPriceBIdx]; const mult = Math.round((sliderValue % 1) * 100) / 100; - const gasPrice = gasPriceA.plus(gasPriceB.minus(gasPriceA).times(mult)); + const gasPrice = gasPriceA + .plus(gasPriceB.minus(gasPriceA).times(mult)) + .round(); this.setSliderValue(sliderValue, gasPrice); this.props.onChange(event, gasPrice); diff --git a/js/src/modals/Transfer/transfer.js b/js/src/modals/Transfer/transfer.js index 192b2f460..b505ad0ae 100644 --- a/js/src/modals/Transfer/transfer.js +++ b/js/src/modals/Transfer/transfer.js @@ -411,6 +411,7 @@ export default class Transfer extends Component { const { api } = this.context; const { account } = this.props; const { data, gas, gasPrice, recipient, value } = this.state; + const options = { from: account.address, to: recipient,