Fix write call without params

pull/3504/head
Victor Baranov 4 years ago
parent 976e5e51e2
commit 6297299489
  1. 2
      CHANGELOG.md
  2. 2
      apps/block_scout_web/assets/js/lib/smart_contract/functions.js
  3. 2
      apps/explorer/package-lock.json

@ -7,7 +7,7 @@
### Fixes
- [#3433](https://github.com/poanetwork/blockscout/pull/3433) - Token balances and rewards tables deadlocks elimination
- [#3494](https://github.com/poanetwork/blockscout/pull/3494), [#3497](https://github.com/poanetwork/blockscout/pull/3497) - Contracts interaction: fix method call with array[] input
- [#3494](https://github.com/poanetwork/blockscout/pull/3494), [#3497](https://github.com/poanetwork/blockscout/pull/3497), [#3504](https://github.com/poanetwork/blockscout/pull/3504) - Contracts interaction: fix method call with array[] input
- [#3494](https://github.com/poanetwork/blockscout/pull/3494), [#3495](https://github.com/poanetwork/blockscout/pull/3495) - Contracts interaction: fix tuple output display
- [#3479](https://github.com/poanetwork/blockscout/pull/3479) - Fix working with big numbers in Staking DApp
- [#3477](https://github.com/poanetwork/blockscout/pull/3477) - Contracts interaction: fix broken call of GnosisProxy contract methods with parameters

@ -150,7 +150,7 @@ function callMethod (isWalletEnabled, $functionInputs, explorerChainId, $form, f
const inputsCount = inputs && inputs.length
let methodToCall
const sendParams = { from: currentAccount, value: txValue || 0 }
if (inputsCount > 1) {
if (inputsCount > 1 || inputsCount === 0) {
methodToCall = TargetContract.methods[functionName](...args).send(sendParams)
} else {
const inputType = inputs[0] && inputs[0].type

@ -130,7 +130,7 @@
},
"os-tmpdir": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz",
"resolved": "http://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz",
"integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ="
},
"path-is-absolute": {

Loading…
Cancel
Save