How do I call an action with a predetermined argument from a code interface?

I'm creating a personal project with AshDoubleEntry, and I want to create a code interface on the Ledger domain to get an Account with a specific identifier. I currently have the following, but I'm not sure what to do to further? How do i define this hardcoded argument?
define :get_main_account do
action :by_identifier
get? true
end
define :get_main_account do
action :by_identifier
get? true
end
1 Reply
Torkan
Torkan•6d ago
I would just create a regular function in that domain with the hardcoded value, that in turn then calls that code_interface again 😎

Did you find this page helpful?