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

Change WASM behaviour to default: burn vesting balance when instantiating contract #740

Merged
merged 9 commits into from
Dec 8, 2023

Conversation

ysv
Copy link
Contributor

@ysv ysv commented Dec 8, 2023

Description

Reviewers checklist:

  • Try to write more meaningful comments with clear actions to be taken.
  • Nit-picking should be unblocking. Focus on core issues.

Authors checklist

  • Provide a concise and meaningful description
  • Review the code yourself first, before making the PR.
  • Annotate your PR in places that require explanation.
  • Think and try to split the PR to smaller PR if it is big.

This change is Reviewable

@ysv ysv requested a review from a team as a code owner December 8, 2023 15:35
@ysv ysv requested review from dzmitryhil, miladz68 and wojtek-coreum and removed request for a team December 8, 2023 15:35
Copy link
Contributor

@miladz68 miladz68 left a comment

Choose a reason for hiding this comment

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

Reviewed 3 of 3 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @dzmitryhil, @wojtek-coreum, and @ysv)


integration-tests/modules/wasm_test.go line 2229 at r2 (raw file):

		},
		{
			name: "vestingtypes.MsgCreateVestingAccount (delayed, non-vested)",

the description says non-vested, but it is vested right ?

@ysv ysv requested a review from miladz68 December 8, 2023 15:51
Copy link
Contributor Author

@ysv ysv left a comment

Choose a reason for hiding this comment

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

Reviewable status: 2 of 3 files reviewed, 1 unresolved discussion (waiting on @dzmitryhil, @miladz68, and @wojtek-coreum)


integration-tests/modules/wasm_test.go line 2229 at r2 (raw file):

Previously, miladz68 (milad) wrote…

the description says non-vested, but it is vested right ?

no, this one is different
For others we wait 1 block for vesting to be completed

But this one we define EndTime: time.Now().Add(time.Minute).Unix(), so it is not vested before contract instantiation

Increase it to +1h to be sure

miladz68
miladz68 previously approved these changes Dec 8, 2023
Copy link
Contributor

@miladz68 miladz68 left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @dzmitryhil and @wojtek-coreum)

wojtek-coreum
wojtek-coreum previously approved these changes Dec 8, 2023
Copy link
Collaborator

@wojtek-coreum wojtek-coreum left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 3 files at r2, 1 of 1 files at r3, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @dzmitryhil)

@ysv ysv dismissed stale reviews from wojtek-coreum and miladz68 via 35b5a7d December 8, 2023 16:04
wojtek-coreum
wojtek-coreum previously approved these changes Dec 8, 2023
Copy link
Collaborator

@wojtek-coreum wojtek-coreum left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r4, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @dzmitryhil)

dzmitryhil
dzmitryhil previously approved these changes Dec 8, 2023
Copy link
Contributor

@dzmitryhil dzmitryhil left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 3 files at r2, 1 of 1 files at r4, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @ysv)

@ysv ysv dismissed stale reviews from dzmitryhil and wojtek-coreum via 47725fb December 8, 2023 16:51
Copy link
Contributor

@dzmitryhil dzmitryhil left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: 3 of 4 files reviewed, all discussions resolved (waiting on @miladz68 and @wojtek-coreum)

Copy link
Contributor

@miladz68 miladz68 left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r4, 1 of 1 files at r5, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @ysv)

@ysv ysv merged commit f9a24ad into release-v3 Dec 8, 2023
7 checks passed
@ysv ysv deleted the yaroslav/contract-inst-default-behaviour branch December 8, 2023 17:40
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.

4 participants