This commit is contained in:
2026-02-27 01:34:30 +09:00
parent ae17d21f4f
commit 713650f88b
5 changed files with 21 additions and 31 deletions
+4 -13
View File
@@ -127,7 +127,7 @@ start_link(Args) ->
init({Prefs, Manifest}) ->
Lang = maps:get(lang, Prefs, en_us),
Lang = maps:get(lang, Prefs, en),
Trans = gd_jt:read_translations(?MODULE),
J = gd_jt:j(Lang, Trans),
Wx = wx:new(),
@@ -338,21 +338,12 @@ clicked2(State, Contract, Name) ->
handle_troubling(State, "No wallet is selected!")
end.
clicked3(State = #s{frame = Frame, j = J}, Contract, Name = {FunName, FunType}, Selected, Keys) ->
clicked3(State = #s{frame = Frame, j = J}, Contract, FunDef, Selected, Keys) ->
#c{id = ConID, build = #{aaci := AACI}} = Contract,
{FunDef, ConID, AACI}
ok = gd_con:make_call(FunDef, ConID, AACI),
State.
{aaci, ConName, FunSpecs, _} = AACI,
FunSpec = maps:get(FunName, FunSpecs),
tell("FunName: ~tp", [FunName]),
tell("FunSpec: ~tp", [FunSpec]),
CallType =
case FunType of
call -> J("Contract Call");
dryr -> J("Dry Run")
end,
Label = [CallType, ": ", ConName, ".", FunName, "/", integer_to_list(length(element(1, FunSpec)))],
Dialog = wxDialog:new(Frame, ?wxID_ANY, Label),
Sizer = wxBoxSizer:new(?wxVERTICAL),
KeySz = wxStaticBoxSizer:new(?wxVERTICAL, Dialog, [{label, J("Signature Key")}]),