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

[ECO-731] sanitize address before insertion into the db #14

Merged
merged 5 commits into from
Oct 20, 2023
Merged

Conversation

CRBl69
Copy link
Collaborator

@CRBl69 CRBl69 commented Oct 18, 2023

No description provided.

Copy link

@elliottdehn elliottdehn left a 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"))?,

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just updated.

alnoki

This comment was marked as resolved.

alnoki

This comment was marked as resolved.

[ECO-775] Sanitize Econia address, check decode
@elliottdehn elliottdehn merged commit 63c43d9 into econia Oct 20, 2023
1 of 5 checks passed
@elliottdehn elliottdehn deleted the ECO-731 branch October 20, 2023 22:12
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.

3 participants