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

Add Storage Management to FT Example #253

Merged
merged 19 commits into from
Oct 13, 2022
Merged

Conversation

idea404
Copy link
Contributor

@idea404 idea404 commented Oct 4, 2022

This PR adds storage management to the fungible-token example.

It also changes the naming of public functions to snake_case thus matching naming conventions for Rust smart contracts.

@idea404 idea404 self-assigned this Oct 4, 2022
@idea404 idea404 added the enhancement New feature or request label Oct 4, 2022
Copy link
Member

@ailisp ailisp left a comment

Choose a reason for hiding this comment

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

Thanks @idea404 . This is a great addition to FT to avoid exhaust-storage-deposit attack. Can you fix the lint so we can merge it?

Copy link
Collaborator

@volovyks volovyks left a comment

Choose a reason for hiding this comment

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

@idea404 thanks for working on this!
nits:

  • please, remove package.lock file, yarn.lock is enouth
  • changes to yarn.lock are not necessary, since there is no changes in package.json
  • linter is not happy

examples/src/fungible-token.js Show resolved Hide resolved
examples/src/fungible-token.js Outdated Show resolved Hide resolved
examples/src/fungible-token.js Outdated Show resolved Hide resolved
examples/src/fungible-token.js Outdated Show resolved Hide resolved
examples/src/fungible-token.js Outdated Show resolved Hide resolved
examples/src/fungible-token.js Outdated Show resolved Hide resolved
examples/src/fungible-token.js Outdated Show resolved Hide resolved
examples/src/fungible-token.js Outdated Show resolved Hide resolved
examples/src/fungible-token.js Outdated Show resolved Hide resolved
Copy link
Collaborator

@volovyks volovyks left a comment

Choose a reason for hiding this comment

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

Great PR! And thanks for refactoring it.

@volovyks volovyks merged commit 56d31cc into develop Oct 13, 2022
@ailisp ailisp deleted the ft-example-improvement branch October 14, 2022 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants