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

Correct web-client vesting contract data parsing #3177

Merged
merged 2 commits into from
Dec 5, 2024

Conversation

sisou
Copy link
Member

@sisou sisou commented Dec 4, 2024

Now takes the transaction's actual recipient data, instead of the internal representation of a vesting contract's CreationTransactionData. The internal representation uses varints to serialize the contract's startTime and timeStep, but the on-chain transaction recipient data doesn't. Since the transaction recipient data also has shorter formats that don't include the contract's totalAmount, this field is required now to be passed to the parsing method.

Pull request checklist

  • All tests pass. The project builds and runs.
  • I have resolved any merge conflicts.
  • I have resolved all clippy and rustfmt warnings.

@sisou sisou self-assigned this Dec 4, 2024
sisou added 2 commits December 5, 2024 15:25
Now takes the transaction's actual recipient data, instead of the internal representation of a vesting contract's `CreationTransactionData`. The internal representation uses `varints` for the serialization of the contract's `startTime` and `timeStep`, but the transaction recipient data doesn't. Since the transaction recipient data also has formats that doesn't include the contracts `totalAmount`, this field is required now to be passed to the parsing method.
@jsdanielh jsdanielh force-pushed the soeren/web-vesting-parse-data branch from 4719bdf to d1e070a Compare December 5, 2024 21:26
Copy link
Member

@jsdanielh jsdanielh left a comment

Choose a reason for hiding this comment

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

LGTM

@jsdanielh jsdanielh merged commit d1e070a into albatross Dec 5, 2024
8 checks passed
@jsdanielh jsdanielh deleted the soeren/web-vesting-parse-data branch December 5, 2024 22:24
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.

2 participants