Use actual registry fee

This commit is contained in:
Jaco Greeff 2016-11-21 15:47:36 +01:00
parent 47f5a6d005
commit e90743ecbf

View File

@ -29,6 +29,8 @@ export const reserve = (name) => (dispatch, getState) => {
const state = getState(); const state = getState();
const account = state.accounts.selected; const account = state.accounts.selected;
const contract = state.contract; const contract = state.contract;
const fee = state.fee;
if (!contract || !account) return; if (!contract || !account) return;
if (alreadyQueued(state.names.queue, 'reserve', name)) return; if (alreadyQueued(state.names.queue, 'reserve', name)) return;
const reserve = contract.functions.find((f) => f.name === 'reserve'); const reserve = contract.functions.find((f) => f.name === 'reserve');
@ -36,7 +38,7 @@ export const reserve = (name) => (dispatch, getState) => {
name = name.toLowerCase(); name = name.toLowerCase();
const options = { const options = {
from: account.address, from: account.address,
value: toWei(1).toString() value: fee
}; };
const values = [ sha3(name) ]; const values = [ sha3(name) ];