-
Notifications
You must be signed in to change notification settings - Fork 2
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
[ECO-731] sanitize address before insertion into the db #14
Conversation
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.
There were a few missing but other than that LGTM
@@ -782,7 +792,7 @@ impl ProcessorTrait for EconiaTransactionProcessor { | |||
.expect("Failed to parse MarketAccounts"); | |||
let map_field = data.get("map").expect("No map field"); | |||
market_account_handles.push(MarketAccountHandle { | |||
user: resource.address.clone(), | |||
user: strip_hex_number(resource.address.clone())?, | |||
handle: opt_value_to_string(map_field.get("handle"))?, |
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.
fn event_data_to_place_market_order_event
has integrator
which is an address, as does fn event_data_to_place_limit_order_event
and fn event_data_to_place_swap_order_event
. Now that I look at it, event_data_to_place_swap_order_event
also has signing_account
which is another 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.
Just updated.
[ECO-775] Sanitize Econia address, check decode
No description provided.