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!")
|
||||
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 =
|
||||
case element(2, Name) of
|
||||
call -> "Contract Call";
|
||||
dryr -> "Dry Run"
|
||||
case FunType of
|
||||
call -> J("Contract Call");
|
||||
dryr -> J("Dry Run")
|
||||
end,
|
||||
Dialog = wxDialog:new(Frame, ?wxID_ANY, J(Label)),
|
||||
Dialog = wxDialog:new(Frame, ?wxID_ANY, Label),
|
||||
Sizer = wxBoxSizer:new(?wxVERTICAL),
|
||||
KeySz = wxStaticBoxSizer:new(?wxVERTICAL, Dialog, [{label, J("Signature Key")}]),
|
||||
KeyPicker = wxChoice:new(Dialog, ?wxID_ANY, [{choices, Keys}]),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user