1 Commits

Author SHA1 Message Date
zxq9 c6486408cb WIP
Every call path that can result in a network-dependent explosion
should be handled instead of assumed OK.
2026-05-16 16:22:35 +09:00
2 changed files with 8 additions and 9 deletions
+6 -1
View File
@@ -216,7 +216,12 @@ return_sizer(Parent, J, FunIlk, ReturnType) ->
call_param_sizer(Frame, J) ->
{ok, Height} = hz:top_height(),
case hz:top_height() of
{ok, Height} -> call_param_sizer(Frame, J, Height);
Error -> handle_troubling(State, Error)
end.
call_param_sizer(Frame, J, Height) ->
DefTTL = Height + 10000,
DefGasP = hz:min_gas_price(),
DefGas = 5000000,
+2 -8
View File
@@ -313,14 +313,8 @@ do_open2(Selected, State = #s{wallets = Wallets}) ->
end.
do_open3(Path, State = #s{frame = Frame, j = J}) ->
Dialog = wxPasswordEntryDialog:new(Frame, J("Passphrase"), [{caption, J("Passphrase")}]),
Result =
case wxPasswordEntryDialog:showModal(Dialog) of
?wxID_OK -> {ok, wxPasswordEntryDialog:getValue(Dialog)};
?wxID_CANCEL -> cancel
end,
ok = wxPasswordEntryDialog:destroy(Dialog),
case Result of
Title = J("Passphrase"),
case zxw_modal_text:show(Frame, Title, [{password, true}]) of
{ok, Phrase} ->
case gd_con:open_wallet(Path, Phrase) of
ok -> do_close(State);