This commit is contained in:
Craig Everett 2024-10-28 15:08:52 +09:00
parent c03a2d1f41
commit fb358d5e9a

View File

@ -717,8 +717,8 @@ spend2(#poa{id = ID, name = Name}, Nonce, State = #s{frame = Frame, j = J}) ->
Style = [{style, ?wxSL_HORIZONTAL bor ?wxSL_LABELS}], Style = [{style, ?wxSL_HORIZONTAL bor ?wxSL_LABELS}],
Preset = 1_000, Preset = 1_000,
Min = 1, Min = hz:min_gas_price(),
Max = 1_000_000_000, Max = Min * 2,
GasSl = wxSlider:new(Dialog, ?wxID_ANY, Preset, Min, Max, Style), GasSl = wxSlider:new(Dialog, ?wxID_ANY, Preset, Min, Max, Style),
GasSz = wxStaticBoxSizer:new(?wxVERTICAL, Dialog, [{label, J("Gas Price")}]), GasSz = wxStaticBoxSizer:new(?wxVERTICAL, Dialog, [{label, J("Gas Price")}]),
_ = wxStaticBoxSizer:add(GasSz, GasSl, zxw:flags(wide)), _ = wxStaticBoxSizer:add(GasSz, GasSl, zxw:flags(wide)),
@ -748,7 +748,7 @@ spend2(#poa{id = ID, name = Name}, Nonce, State = #s{frame = Frame, j = J}) ->
amount = wxTextCtrl:getValue(AmtTx), amount = wxTextCtrl:getValue(AmtTx),
gas_price = wxSlider:getValue(GasSl), gas_price = wxSlider:getValue(GasSl),
gas = 20000, gas = 20000,
ttl = 175320, ttl = 1,
nonce = Nonce, nonce = Nonce,
payload = wxTextCtrl:getValue(DataTx)}, payload = wxTextCtrl:getValue(DataTx)},
clean_spend(ID, TX); clean_spend(ID, TX);