From e90743ecbf595f7a4c9c02db87700e011c4b757c Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Mon, 21 Nov 2016 15:47:36 +0100 Subject: [PATCH 1/2] Use actual registry fee --- js/src/dapps/registry/Names/actions.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/src/dapps/registry/Names/actions.js b/js/src/dapps/registry/Names/actions.js index ee73ad78e..fb319f166 100644 --- a/js/src/dapps/registry/Names/actions.js +++ b/js/src/dapps/registry/Names/actions.js @@ -29,6 +29,8 @@ export const reserve = (name) => (dispatch, getState) => { const state = getState(); const account = state.accounts.selected; const contract = state.contract; + const fee = state.fee; + if (!contract || !account) return; if (alreadyQueued(state.names.queue, 'reserve', name)) return; const reserve = contract.functions.find((f) => f.name === 'reserve'); @@ -36,7 +38,7 @@ export const reserve = (name) => (dispatch, getState) => { name = name.toLowerCase(); const options = { from: account.address, - value: toWei(1).toString() + value: fee }; const values = [ sha3(name) ]; From 42964e9a8e167c7c8d36aa75fca41ea70a7b7c05 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Mon, 21 Nov 2016 15:48:46 +0100 Subject: [PATCH 2/2] lint fixes --- js/src/dapps/registry/Names/actions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/dapps/registry/Names/actions.js b/js/src/dapps/registry/Names/actions.js index fb319f166..74e446d9d 100644 --- a/js/src/dapps/registry/Names/actions.js +++ b/js/src/dapps/registry/Names/actions.js @@ -14,7 +14,7 @@ // You should have received a copy of the GNU General Public License // along with Parity. If not, see . -import { sha3, toWei } from '../parity.js'; +import { sha3 } from '../parity.js'; const alreadyQueued = (queue, action, name) => !!queue.find((entry) => entry.action === action && entry.name === name);