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

feat: update output models to new TIPs: Alias/Accout Output #7926

Merged

Conversation

evavirseda
Copy link
Collaborator

Summary

Closes #7858

...

Changelog

- Please write a list of changes

Testing

Platforms

Please select any platforms where your changes have been tested.

  • Desktop
    • MacOS
    • Linux
    • Windows

Instructions

Please describe the specific instructions, configurations, and/or test cases necessary to test and verify that your changes work as intended.

...

Checklist

Please tick the following boxes that are relevant to your changes.

  • I have followed the contribution guidelines for this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or modified tests that prove my changes work as intended
  • I have verified that new and existing unit tests pass locally with my changes
  • I have verified that my latest changes pass CI workflows for testing and linting
  • I have made corresponding changes to the documentation

@evavirseda evavirseda force-pushed the feat/update-aliasOutput-to-accountOutput branch from 77eed69 to 4b06971 Compare January 25, 2024 10:46
@evavirseda evavirseda marked this pull request as ready for review January 25, 2024 10:48
@begonaalvarezd begonaalvarezd linked an issue Jan 25, 2024 that may be closed by this pull request
@evavirseda evavirseda marked this pull request as draft January 26, 2024 11:11
@evavirseda evavirseda marked this pull request as ready for review January 29, 2024 12:21
Copy link
Member

@cpl121 cpl121 left a comment

Choose a reason for hiding this comment

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

Conflicts 🙏🏼

…tOutput

packages/shared/lib/core/wallet/utils/generateActivity/generateActivities.ts
packages/shared/lib/core/wallet/utils/generateActivity/helper/getGovernorAddressFromAnchorOutput.ts
packages/shared/lib/core/wallet/utils/generateActivity/helper/getStateControllerAddressFromAnchorOutput.ts
packages/shared/lib/core/wallet/utils/generateActivity/helper/index.ts
Copy link
Member

@cpl121 cpl121 left a comment

Choose a reason for hiding this comment

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

🙏🏼

for (const accountOutput of accountOutputs) {
const output = accountOutput.output as AccountOutput
const activity = await generateSingleAccountActivity(wallet, {
action: output.accountId === EMPTY_HEX_ID ? ActivityAction.Mint : ActivityAction.Send,
Copy link
Member

Choose a reason for hiding this comment

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

Where the condition should be updated is here.
imo, for now, I would put this
action: output.accountId === EMPTY_HEX_ID ? ActivityAction.Send : ActivityAction.Mint,

I would add a comment and update the issue to check this logic

Copy link
Member

@begonaalvarezd begonaalvarezd left a comment

Choose a reason for hiding this comment

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

🔥

@begonaalvarezd begonaalvarezd merged commit 0702c97 into develop-iota2.0 Feb 12, 2024
3 of 4 checks passed
@begonaalvarezd begonaalvarezd deleted the feat/update-aliasOutput-to-accountOutput branch February 12, 2024 12:59
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.

[Task]: Update output models to new TIPs: Alias/Accout Output
3 participants