WIP
This commit is contained in:
parent
2a52b593bb
commit
d2d9ae613e
@ -325,13 +325,20 @@ clicked2(State, Contract, Name) ->
|
|||||||
handle_troubling(State, "No wallet is selected!")
|
handle_troubling(State, "No wallet is selected!")
|
||||||
end.
|
end.
|
||||||
|
|
||||||
clicked3(State = #s{frame = Frame, j = J}, Contract, Name, Selected, Keys) ->
|
clicked3(State = #s{frame = Frame, j = J}, Contract, Name = {FunName, FunType}, Selected, Keys) ->
|
||||||
|
{FunName, FunType} = Name,
|
||||||
|
#c{build = #{aaci := AACI}} = Contract,
|
||||||
|
{aaci, ConName, FunSpecs, _} = AACI,
|
||||||
|
FunSpec = maps:get(FunName, FunSpecs),
|
||||||
|
tell("FunName: ~tp", [FunName]),
|
||||||
|
tell("FunSpec: ~tp", [FunSpec]),
|
||||||
|
tell("Contract: ~tp", [Contract]),
|
||||||
Label =
|
Label =
|
||||||
case element(2, Name) of
|
case FunType of
|
||||||
call -> "Contract Call";
|
call -> J("Contract Call");
|
||||||
dryr -> "Dry Run"
|
dryr -> J("Dry Run")
|
||||||
end,
|
end,
|
||||||
Dialog = wxDialog:new(Frame, ?wxID_ANY, J(Label)),
|
Dialog = wxDialog:new(Frame, ?wxID_ANY, Label),
|
||||||
Sizer = wxBoxSizer:new(?wxVERTICAL),
|
Sizer = wxBoxSizer:new(?wxVERTICAL),
|
||||||
KeySz = wxStaticBoxSizer:new(?wxVERTICAL, Dialog, [{label, J("Signature Key")}]),
|
KeySz = wxStaticBoxSizer:new(?wxVERTICAL, Dialog, [{label, J("Signature Key")}]),
|
||||||
KeyPicker = wxChoice:new(Dialog, ?wxID_ANY, [{choices, Keys}]),
|
KeyPicker = wxChoice:new(Dialog, ?wxID_ANY, [{choices, Keys}]),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user