Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CustomTxType FromString method #1180

Merged
merged 3 commits into from
Apr 29, 2022
Merged

Conversation

Jouzo
Copy link
Collaborator

@Jouzo Jouzo commented Mar 31, 2022

What kind of PR is this?:

/kind feature

What this PR does / why we need it:

listaccounthistory now accepts txtype key as custom tx name and custom tx code.
This smoothens the use of listaccounthistory as previously one had to lookup the correct txcode to filter history by txtype.

Both these usages are correct and give the same result :

defi-cli listaccounthistory 'all' '{"txtype":"DFIP2203"}'
defi-cli listaccounthistory 'all' '{"txtype":"Q"}'

Which issue(s) does this PR fixes?:

Fixes #1176

@Jouzo Jouzo force-pushed the feature/customtxtype_fromstring branch from 30b4d46 to 773a205 Compare April 1, 2022 08:15
@prasannavl prasannavl merged commit 9911c90 into master Apr 29, 2022
@prasannavl prasannavl deleted the feature/customtxtype_fromstring branch April 29, 2022 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Word mapping for txtype in listaccounthistory
3 participants