Skip to content

Conversation

@rickyrombo
Copy link
Contributor

Description

  • The wrong parser was being used in the access-info endpoint
  • The wrong type was being used for the argument
  • The internal _get_extended_purchase_gate() method was mutating the passed in "gate" info splits, causing the amounts to be wrong for the access-info endpoint.

How Has This Been Tested?

Tested that the endpoint returns as expected when run locally. Still need to test E2E, but need to deploy a "staking bridge" (probably just default to the local owner wallet) locally first

@changeset-bot
Copy link

changeset-bot bot commented Aug 27, 2024

⚠️ No Changeset found

Latest commit: 7874a08

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

price = gate.get("usdc_purchase", {}).get("price", None)
splits = gate.get("usdc_purchase", {}).get("splits", [])
original_splits = gate.get("usdc_purchase", {}).get("splits", [])
splits = [orig.copy() for orig in original_splits]
Copy link
Member

Choose a reason for hiding this comment

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

do we want to deep copy here just in case this gets more complex?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

maybe? though that's a 20x perf hit so idk if it's worth it yet

@rickyrombo rickyrombo merged commit eed6296 into main Aug 27, 2024
@rickyrombo rickyrombo deleted the mjp-python-sucks branch August 27, 2024 01:51
audius-infra pushed a commit that referenced this pull request Aug 27, 2024
[eed6296] Fix include_network_cut parameter (#9555) Marcus Pasell
[48b8641] Fix purchasers endpoint (#9549) Andrew Mendelsohn
[53deb4b] Remove marshalling for nft-gated-signatures (#9550) Randy Schott
[6b170d0] [PAY-3375] get chat endpoint correctly filters for audience:type:id (#9545) Steve Perkins
[84f4781] [PAY-3380] Skip geo indexing on local dev stack (#9544) Reed
[ba1aaed] Fix trending reward notifs (#9532) Isaac Solo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants