-
Notifications
You must be signed in to change notification settings - Fork 16
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
[Payments V2] Discount House Revamp #220
base: ml/new-payments-design
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
16a1274
to
2dd5735
Compare
public fun assert_version_is_valid(self: &DiscountHouse) { | ||
assert!(self.version == VERSION, ENotValidVersion); | ||
public(package) macro fun discount_house_key(): String { | ||
b"object_discount".to_string() |
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.
is this a constant?
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.
I don't feel strongly between making this a constant or returning the string directly cc: @manolisliolios
Revamp the Discount House (object-based discount) for both free claims & percentage off sales to use the new payments design, simplifying the process.