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

Share amount and tokens #6927

Merged
merged 2 commits into from
Jun 23, 2020

Conversation

zoek1
Copy link
Contributor

@zoek1 zoek1 commented Jun 19, 2020

Description
Refers/Fixes
Testing


for ele in grants_data:
# new format will support amount and token in the URL separated by ;
grant_data = ele.split(';')
Copy link
Contributor

Choose a reason for hiding this comment

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

is this backwards compatible with the old links that have already been shared out in the wild?

@owocki
Copy link
Contributor

owocki commented Jun 19, 2020

https://bits.owocki.com/RBuq96nd

hmm it isnt working for me for some reason. i had 2 DAI grants and 1 ETH grant in my cart

@owocki
Copy link
Contributor

owocki commented Jun 19, 2020

hmmm yeah it just seems to clear my cart. derp

https://gitcoin.co/grants/cart/bulk-add/351;1;283,237;5;283,15;1;283,13;5;283,:owocki

@zoek1
Copy link
Contributor Author

zoek1 commented Jun 22, 2020

The current "share My cart" prefills automatically the domain with gitcoin.co, it needs substitute manually the domain of your host in testing

@owocki
Copy link
Contributor

owocki commented Jun 22, 2020

just tested this and it works fine. looks like its backwards compartible with the old style links too ( http://localhost:8000/grants/cart/bulk-add/567,143,:owocki ) cool!

@owocki
Copy link
Contributor

owocki commented Jun 22, 2020

:shipit:

@thelostone-mc thelostone-mc changed the base branch from stable to master June 23, 2020 06:24
@thelostone-mc thelostone-mc merged commit 66e2450 into gitcoinco:master Jun 23, 2020
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.

5 participants