-
Notifications
You must be signed in to change notification settings - Fork 2
Create core reward instance when redemption code is added #538
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
Conversation
| codeChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" | ||
| signedAuthMessage = "code" | ||
| codeLength = 6 | ||
| codeChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" |
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.
didn't want to just base58 a random number? :D
api/v1_create_reward_code.go
Outdated
| } | ||
|
|
||
| claimAuthority, claimAuthorityPrivateKey, err := utils.DeriveEthAddressForMint( | ||
| []byte("launchpad_reward_code"), |
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.
We used a different value for this domain in our scripting.
Probably should be a constant somewhere right? Since it affects the key that gets generated.
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.
ah yeah this was a mistake
Modify post route to create a core reward instance when launchpadDeterministicSecret is defined
Use
codeas the rewardId