Merge pull request #4582 from blockscout/np-fix-nan-error-write-cntrct

Fix NaN input in write contract
pull/4587/head
Victor Baranov 3 years ago committed by GitHub
commit 1b08186a58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 2
      apps/block_scout_web/assets/js/lib/smart_contract/write.js

@ -3,6 +3,7 @@
### Features
### Fixes
- [#4582](https://github.com/blockscout/blockscout/pull/4582) - Fix NaN input on write contract page
### Chore

@ -151,5 +151,5 @@ function getTxValue ($functionInputs) {
const $txValue = $functionInputs.filter('[tx-value]:first')
const txValue = $txValue && $txValue.val() && parseFloat($txValue.val()) * WEI_MULTIPLIER
const txValueStr = txValue && txValue.toString(16)
return txValueStr
return '0x' + txValueStr
}

Loading…
Cancel
Save