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

Support for transferring ownership #144

Merged
merged 4 commits into from
Jan 18, 2021
Merged

Support for transferring ownership #144

merged 4 commits into from
Jan 18, 2021

Conversation

fletcher142
Copy link
Contributor

  1. support for transferring ownership
  2. change the symbol length validation

@fletcher142 fletcher142 requested a review from unclezoro January 12, 2021 09:49
if c.key == nil {
return nil, KeyMissingError
}
if symbol == "" {
Copy link
Contributor

Choose a reason for hiding this comment

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

no need to do check here. Basic check will be done inside Broadcast .

return nil, fmt.Errorf("Transfer token ownership, symbol can't be empty ")
}
if newOwner == nil {
return nil, fmt.Errorf("Transfer token ownership, new owner can't be nil ")
Copy link
Contributor

Choose a reason for hiding this comment

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

so do here

rickyyangz
rickyyangz previously approved these changes Jan 14, 2021
@fletcher142 fletcher142 merged commit ca3015e into master Jan 18, 2021
@fletcher142 fletcher142 mentioned this pull request Jan 18, 2021
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