-
Notifications
You must be signed in to change notification settings - Fork 6
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
Refactor DotrainOrderGui with new yaml struct changes #1117
base: main
Are you sure you want to change the base?
Conversation
…dotrain-order-gui
@@ -154,6 +160,114 @@ impl Scenario { | |||
|
|||
Ok(()) | |||
} | |||
|
|||
pub fn update_bindings( |
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.
can't see any tests for this?
@@ -63,6 +63,165 @@ impl Order { | |||
pub fn validate_vault_id(value: &str) -> Result<U256, ParseOrderConfigSourceError> { | |||
U256::from_str(value).map_err(ParseOrderConfigSourceError::VaultParseError) | |||
} | |||
|
|||
pub fn update_vault_id( |
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.
no tests?
Ok(self.clone()) | ||
} | ||
|
||
pub fn populate_vault_ids(&mut self) -> Result<Self, YamlError> { |
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.
no tests?
@@ -45,12 +46,11 @@ impl DotrainOrderGui { | |||
return Err(GuiError::TokenNotFound(token_name.clone())); | |||
} | |||
|
|||
let address = Address::from_str(&address)?; | |||
select_tokens.insert(token_name.clone(), address); | |||
let addr = Address::from_str(&address)?; |
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.
why this renaming? is there reason?
Caution
Do not merge before #1105
Motivation
See issue: #1035
Solution
Checks
By submitting this for review, I'm confirming I've done the following: