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

fix: do not create account on x/token,collection #866

Merged
merged 5 commits into from
Feb 3, 2023

Conversation

0Tech
Copy link
Collaborator

@0Tech 0Tech commented Jan 19, 2023

Description

Do not create account on x/token,collection.

Motivation and context

The target address which receives a token apparently cannot broadcast a tx because of its zero-balance. We should not create the corresponding account on mint and send logic.

Checklist:

  • I followed the contributing guidelines and code of conduct.
  • I have added a relevant changelog to CHANGELOG.md
  • I have added tests to cover my changes.
  • I have updated the documentation accordingly.
  • I have updated API documentation client/docs/swagger-ui/swagger.yaml

@0Tech 0Tech added A: bug Something isn't working C:x/collection C:x/token labels Jan 19, 2023
@0Tech 0Tech self-assigned this Jan 19, 2023
@codecov
Copy link

codecov bot commented Jan 19, 2023

Codecov Report

Merging #866 (af89b27) into main (611b286) will decrease coverage by 0.02%.
The diff coverage is 96.57%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #866      +/-   ##
==========================================
- Coverage   62.37%   62.36%   -0.02%     
==========================================
  Files         653      653              
  Lines       79976    79951      -25     
==========================================
- Hits        49885    49860      -25     
  Misses      27399    27399              
  Partials     2692     2692              
Impacted Files Coverage Δ
x/collection/keeper/send.go 91.75% <ø> (-0.33%) ⬇️
x/token/keeper/send.go 89.18% <ø> (-0.94%) ⬇️
x/collection/codec.go 44.59% <50.00%> (ø)
x/token/codec.go 57.89% <57.14%> (ø)
x/collection/msgs.go 96.72% <97.64%> (ø)
simapp/app.go 82.30% <100.00%> (ø)
x/collection/client/testutil/query.go 100.00% <100.00%> (ø)
x/collection/client/testutil/suite.go 99.60% <100.00%> (ø)
x/collection/client/testutil/tx.go 100.00% <100.00%> (ø)
x/collection/event.go 100.00% <100.00%> (ø)
... and 20 more

Copy link
Contributor

@jaeseung-bae jaeseung-bae left a comment

Choose a reason for hiding this comment

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

When I try to build after checking out this pr, go mod tidy command removes one of indirect dependency from go.mod. And I have updated go.mod that seems to be missing from this PR. Can you check??

@jaeseung-bae
Copy link
Contributor

jaeseung-bae commented Jan 19, 2023

When I try to build after checking out this pr, go mod tidy command removes one of indirect dependency from go.mod. And I have updated go.mod that seems to be missing from this PR. Can you check??

My mistake. They works fine.
One of my untracked local go file triggered to update go.mod file. I didn't know this is in Draft now...

@0Tech 0Tech marked this pull request as ready for review January 20, 2023 10:30
Copy link
Contributor

@jaeseung-bae jaeseung-bae left a comment

Choose a reason for hiding this comment

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

LGTM

@0Tech 0Tech merged commit ef335aa into Finschia:main Feb 3, 2023
zemyblue added a commit to zemyblue/finschia-sdk that referenced this pull request Feb 6, 2023
* main:
  feat!: add MultiSend deactivation (Finschia#876)
  chore(deps): Bump github.com/gogo/protobuf in /ics23/go (Finschia#816)
  fix: do not create account on x/token,collection (Finschia#866)
  fix!: update x/collection,token proto (Finschia#863)

# Conflicts:
#	CHANGELOG.md
@0Tech 0Tech deleted the create-account branch February 6, 2023 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants