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

NameService: minor improvements, part 4 #27

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

AnnaShaleva
Copy link
Member

The fourth part of NNS contract update, depends on #23, #25 and #26. Waiting for other parts to be merged.

Includes:

  1. Code refactoring.
  2. Allowing multiple records of the same type.

@AnnaShaleva
Copy link
Member Author

BTW, this PR can solve the #8 problem.

And refactor GetRecords/GetAllRecords along the way, move commonly
used code to a separate function.

Originally introduced in
nspcc-dev/neofs-contract@432c02a.
And move commonly used code to a separate methods.

Originally introduced in
nspcc-dev/neofs-contract@4b86891.
Creation token key from ID can be performed in a single place, there's
no need to repeat the following code each time on token-related
operations:

```
ByteString tokenKey = GetKey(tokenId);
```
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.

1 participant