From 60b596c0c48744e4539b561a72d7f1d3975e2e0d Mon Sep 17 00:00:00 2001 From: envin Date: Thu, 19 Sep 2024 19:50:47 +0200 Subject: [PATCH 1/2] fix(withwithdrawInflationToRecipient): fix script generation --- src/utils/presets/utils.js | 2 +- src/utils/presets/withdrawInflationToRecipient.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/utils/presets/utils.js b/src/utils/presets/utils.js index f88b7ef..e9b0a72 100644 --- a/src/utils/presets/utils.js +++ b/src/utils/presets/utils.js @@ -76,7 +76,7 @@ export const prepareTransfer = (tokenAddress, receiverAddress, rawAmount) => [ export const prepareInflationProposal = async (ethPNTAddress, receiverAddress, rawAmount) => { return _.flattenDeep([ - prepareWithdrawInflation(ethPNTAddress, receiverAddress), + prepareWithdrawInflation(ethPNTAddress, rawAmount), prepareTransfer(ethPNTAddress, receiverAddress, rawAmount) ]) } diff --git a/src/utils/presets/withdrawInflationToRecipient.js b/src/utils/presets/withdrawInflationToRecipient.js index 146abce..8a26f67 100644 --- a/src/utils/presets/withdrawInflationToRecipient.js +++ b/src/utils/presets/withdrawInflationToRecipient.js @@ -16,11 +16,11 @@ const withdrawInflationToRecipient = ({ presetParams, setPresetParams }) => ({ fontSize: 15 }, placeholder: 'Receiver address ...', - value: presetParams[1] || '', + value: presetParams[0] || '', onChange: (_e) => setPresetParams({ ...presetParams, - 1: _e.target.value + 0: _e.target.value }) } }, @@ -34,11 +34,11 @@ const withdrawInflationToRecipient = ({ presetParams, setPresetParams }) => ({ fontSize: 15 }, placeholder: 'Amount ...', - value: presetParams[2] || '', + value: presetParams[1] || '', onChange: (_e) => setPresetParams({ ...presetParams, - 2: _e.target.value + 1: _e.target.value }) } } From 02dae219cf560e218b1f8d95185103cc8b2130a9 Mon Sep 17 00:00:00 2001 From: envin Date: Thu, 19 Sep 2024 19:56:43 +0200 Subject: [PATCH 2/2] chore(package): update package --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 65cf9b3..1326643 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "dao-v1-ui", - "version": "0.6.0", + "version": "0.6.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "dao-v1-ui", - "version": "0.6.0", + "version": "0.6.1", "hasInstallScript": true, "dependencies": { "@rainbow-me/rainbowkit": "^0.12.8", diff --git a/package.json b/package.json index 7b67150..f97d98c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dao-v1-ui", - "version": "0.6.0", + "version": "0.6.1", "private": true, "homepage": ".", "dependencies": {