-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat: improved credit transfer strategies #97
base: master
Are you sure you want to change the base?
Conversation
SetStartIdentitiesBalance(String, u64), | ||
AddOperation { | ||
strategy_name: String, | ||
operation: Operation, | ||
}, | ||
RegisterDocsToAllContracts(String, u16, DocumentFieldFillSize, DocumentFieldFillType), | ||
RunStrategy(String, u64, bool, bool, u64), | ||
RunStrategy(String, u64, u64, bool, u64), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One day it should be a variant with named parameters
.fetch_add(1, Ordering::SeqCst); | ||
} | ||
}; | ||
match e.inner { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
match with one arm usually covered by if let
@@ -90,6 +93,13 @@ impl OperationsScreenController { | |||
let supporting_contracts_lock = app_state.supporting_contracts.lock().await; | |||
let strategy_contract_names_lock = | |||
app_state.available_strategies_contract_names.lock().await; | |||
let loaded_identity = app_state.loaded_identity.lock().await; | |||
|
|||
let loaded_identity_id = if let Some(identity) = &*loaded_identity { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like .map
Issue being fixed or feature implemented
What was done?
How Has This Been Tested?
Breaking Changes
Checklist: