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

Update correct next approver with category/tag rules #52537

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

nkdengineer
Copy link
Contributor

@nkdengineer nkdengineer commented Nov 14, 2024

Explanation of Change

  • Update getApprovalChain to include category/tag rule approvers
  • getNextApproverAccountID already works as expected

Fixed Issues

$ #52458
PROPOSAL:

Tests

Precondition:

  • The workspace's rules are enabled, and the approval mode is ADVANCE
  • Has 4 approvers and 1 submitter
  • Setting two category approver rules (CAT1 and CAT2) for two approvers (approver 1 and approver 2) and two tag approver rules (TAG1 and TAG2) for two approvers (approver 3 and approver 4)
  1. [Submitter]: Submit 4 expenses that include categories CAT1 and CAT2, tags TAG1 and TAG2
  2. [Submitter]: Submit the expense report and verify that the next approver is the approver 1
  3. [Approver1]: Approve the expense and verify that the next approver is the approver 2
  4. [Approver2]: Approve the expense and verify that the next approver is the approver 3
  5. [Approver3]: Approve the expense and verify that the next approver is the approver 4
  6. [Approver4]: Approve the expense and verify that the next step is waiting admin for payment
  • Verify that no errors appear in the JS console

Offline tests

Same as above

QA Steps

// TODO: These must be filled out, or the issue title must include "[No QA]."
Precondition:

  • The workspace's rules are enabled, and the approval mode is ADVANCE
  • Has 4 approvers and 1 submitter
  • Setting two category approver rules (CAT1 and CAT2) for two approvers (approver 1 and approver 2) and two tag approver rules (TAG1 and TAG2) for two approvers (approver 3 and approver 4)
  1. [Submitter]: Submit 4 expenses that include categories CAT1 and CAT2, tags TAG1 and TAG2
  2. [Submitter]: Submit the expense report and verify that the next approver is the approver 1
  3. [Approver1]: Approve the expense and verify that the next approver is the approver 2
  4. [Approver2]: Approve the expense and verify that the next approver is the approver 3
  5. [Approver3]: Approve the expense and verify that the next approver is the approver 4
  6. [Approver4]: Approve the expense and verify that the next step is waiting admin for payment
  • Verify that no errors appear in the JS console

PR Author Checklist

  • I linked the correct issue in the ### Fixed Issues section above
  • I wrote clear testing steps that cover the changes made in this PR
    • I added steps for local testing in the Tests section
    • I added steps for the expected offline behavior in the Offline steps section
    • I added steps for Staging and/or Production testing in the QA steps section
    • I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    • I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
  • I included screenshots or videos for tests on all platforms
  • I ran the tests on all platforms & verified they passed on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
    • MacOS: Desktop
  • I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
  • I followed proper code patterns (see Reviewing the code)
    • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
      • If any non-english text was added/modified, I verified the translation was requested/reviewed in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:
    • I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
    • I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
    • I verified the JSDocs style guidelines (in STYLE.md) were followed
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I followed the guidelines as stated in the Review Guidelines
  • I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
  • I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
  • I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
  • I verified that if a function's arguments changed that all usages have also been updated correctly
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native
Screen.Recording.2024-11-26.at.12.43.40.mov
Android: mWeb Chrome
Screen.Recording.2024-11-20.at.14.28.34.mov
iOS: Native
Screen.Recording.2024-11-26.at.12.45.17.mov
iOS: mWeb Safari
Screen.Recording.2024-11-26.at.12.41.25.mov
MacOS: Chrome / Safari
Screen.Recording.2024-11-26.at.12.30.19.mov
Screen.Recording.2024-11-26.at.12.34.51.mov
Screen.Recording.2024-11-26.at.12.35.47.mov
Screen.Recording.2024-11-26.at.12.36.28.mov
Screen.Recording.2024-11-26.at.12.37.03.mov
MacOS: Desktop
Screen.Recording.2024-11-26.at.12.47.36.mov

@Beamanator
Copy link
Contributor

I spent a lot of time today fixing the backend, PR is up - but I didn't get to test your front end changes, sorry - if you can't find a bug with the correct approver when there's multiple category approvers, that's great! I will try to reproduce the issue i found on Monday 🙏

@nkdengineer
Copy link
Contributor Author

Got it, no problem.

@nkdengineer nkdengineer marked this pull request as ready for review November 26, 2024 05:57
@nkdengineer nkdengineer requested a review from a team as a code owner November 26, 2024 05:57
@melvin-bot melvin-bot bot requested review from ntdiary and removed request for a team November 26, 2024 05:57
Copy link

melvin-bot bot commented Nov 26, 2024

@ntdiary Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

* Return the sorted list transactions of an iou report
*/
function getAllSortedTransactions(iouReportID: string): Array<OnyxEntry<Transaction>> {
// We need sort all transactions by sorting the parent report actions because `created` of the transaction only has format `YYYY-MM-DD` which can cause the wrong sorting
Copy link
Contributor

Choose a reason for hiding this comment

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

Oooohhh this is interesting, and maaay be wrong - but let's see.

What we need to test is (in OldDot):

  1. create 2 new expenses in a report with different category approvers
  2. The 1st created expense should have an expense date AFTER the date of the 2nd expense

Then, when the submitter submits the report, does the report go to the category approver on the first expense or the category approver on the 2nd expense?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

// We need sort all transactions by sorting the parent report actions because created of the transaction only has format YYYY-MM-DD which can cause the wrong sorting

@Beamanator Currently, we're going to the first expense. I think I need to update the comment a bit to

// We need to sort all transactions by sorting the parent report actions because `created` of the transaction doesn't mean the created time of the transaction.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok well from my testing in OldDot, it honestly doesn't seem consistent, which order the category approvers show up when there's multiple 😅 So I'm discussing internally to figure out what we'll want to do in NewDot, as an expected order

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok Updated sort order is here: #52458 (comment)

Copy link
Contributor

Choose a reason for hiding this comment

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

seems frontend also needs a tweak to achieve this sort order.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Still investigate the sort order.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ntdiary Updated the sort order.

@ntdiary
Copy link
Contributor

ntdiary commented Nov 27, 2024

Reviewer Checklist

  • I have verified the author checklist is complete (all boxes are checked off).
  • I verified the correct issue is linked in the ### Fixed Issues section above
  • I verified testing steps are clear and they cover the changes made in this PR
    • I verified the steps for local testing are in the Tests section
    • I verified the steps for Staging and/or Production testing are in the QA steps section
    • I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
  • I checked that screenshots or videos are included for tests on all platforms
  • I included screenshots or videos for tests on all platforms
  • I verified tests pass on all platforms & I tested again on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
    • MacOS: Desktop
  • If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
  • I verified proper code patterns were followed (see Reviewing the code)
    • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick).
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
    • I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
    • I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
    • I verified the JSDocs style guidelines (in STYLE.md) were followed
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I verified that this PR follows the guidelines as stated in the Review Guidelines
  • I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
  • I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
  • I verified any variables that can be defined as constants (ie. in CONST.ts or at the top of the file that uses the constant) are defined as such
  • If a new component is created I verified that:
    • A similar component doesn't exist in the codebase
    • All props are defined accurately and each prop has a /** comment above it */
    • The file is named correctly
    • The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
    • The only data being stored in the state is data necessary for rendering and nothing else
    • For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
    • Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
    • All JSX used for rendering exists in the render method
    • The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
  • For any bug fix or new feature in this PR, I verified that sufficient unit tests are included to prevent regressions in this flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
  • I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop

@ntdiary
Copy link
Contributor

ntdiary commented Nov 27, 2024

no.4.mov

Maybe this should be fixed as a frontend bug: When no.4 approves, the frontend optimistic message shows no further action required!, but the correct backend data is waiting for no.25 to approve. (no.25 is policy owner)
What do you think? cc @nkdengineer @Beamanator

@nkdengineer
Copy link
Contributor Author

@ntdiary Is this reproducible on the latest main? If yes, I think we should fix it as a separate issue.

@ntdiary
Copy link
Contributor

ntdiary commented Nov 28, 2024

@ntdiary Is this reproducible on the latest main? If yes, I think we should fix it as a separate issue.

The reason I'm asking here, is if we don't fix it, we can't achieve the expected behavior in the OP (step 12 offline):

[1] Expected Result:

  1. Confirm the second approver is Approver B (both offline & online)
  2. As Approver B, approve the report
  3. Confirm the third approver is workspace owner (both offline & online)
  4. As WS owner, approve and confirm that the report is final approved.

Additionally, this problem is introduced by PR #51196, the execution chain is:
approveMoneyRequestgetApprovalChaingetSubmitToEmailgetSubmitToAccountID. When approving, if there is a category approver in the chain, the first item in the chain was always the category approver, which caused the optimisticNextStep calculation to be incorrect.

BTW, when building the approval chain, I think Set may be more appropriate and simple than Array, as the elements are unique and ordered. If we don't want to make many changes, we can still return Array, since the conv is also quite simple:

const chain = new Set<String>()
approvers.forEach(el => chain.add(el))

chain.delete(submitterEmail)

a = new Set([1,3,2,4,3,2])
return [...a]

Finally, if needed, maybe we could increase the bounty for this issue, since it really involves quite multiple cases that need to be considered. :)

@Beamanator
Copy link
Contributor

I definitely think it's fair to bump the bounty on this one, it's a pretty complicated issue that we're trying to get perfect 👍

@ntdiary are you waiting on me or @nkdengineer to look at your latest message?

BTW I'm making sure a transaction inserted date gets back to Onyx, that should be ready in staging tomorrow at some point 🙏

@ntdiary
Copy link
Contributor

ntdiary commented Dec 4, 2024

@ntdiary are you waiting on me or @nkdengineer to look at your latest message?

@Beamanator, I’m waiting for the new sorting implementation,
image
and to see if this bug should be fixed. I personally think it should be fixed, because the expected behavior was mentioned in the OP, and in our case, the frontend didn't correctly add the owner to the full approval chain(i.e., rule approval chain + submitsTo/owner/forwards). 😄

@Beamanator
Copy link
Contributor

Cool, yeah @nkdengineer can now implement the correct sorting (with transaction inserted date - b/c that was just deployed yesterday)

and to see if #52537 (comment) should be fixed. I personally think it should be fixed, because the expected behavior was mentioned in the OP, and in our case, the frontend didn't correctly add the owner to the full approval chain(i.e., rule approval chain + submitsTo/owner/forwards). 😄

I think this makes sense too, to fix here 👍 i believe it should be a relatively quick fix 😅

@nkdengineer
Copy link
Contributor Author

Sure will give an update soon.

@ntdiary
Copy link
Contributor

ntdiary commented Dec 5, 2024

BTW, it would be great if we can add some unit tests for this feature, since we've recently started prioritizing unit test. :)
image
slack conv:
https://expensify.slack.com/archives/C01GTK53T8Q/p1733148961659549
https://expensify.slack.com/archives/C05LX9D6E07/p1733164389303049

@Beamanator
Copy link
Contributor

Ooh definitely agreed about tests 👍 though i wouldn't mind if that's in a follow-up just so we can get this out the door quicker 🤷

@nkdengineer
Copy link
Contributor Author

Maybe this should be fixed as a frontend bug: When no.4 approves, the frontend optimistic message shows no further action required!, but the correct backend data is waiting for no.25 to approve. (no.25 is policy owner)

@Beamanator For this bug, I see it's expected here that will show the No further action required! if the approver isn't the payer.

@Beamanator
Copy link
Contributor

Ok IDK bout y'all, but I think y'all need to be suuuuuper clear on the setup you're using to confirm / deny if the policy owner is expected to be the "final approver" in your cases.

@nkdengineer the PR you linked doesn't have anything to do with category/tag approvers, it looks like a super simple setup - does that apply here?

Do you both understand each other's setups or should you both lay out the setup (policy type, autoReportingFrequency, approval mode (basic vs advanced), members list / who approves to who, category & tag approvers, order of expense creation w/ their category/tags)

@ntdiary
Copy link
Contributor

ntdiary commented Dec 6, 2024

Do you both understand each other's setups or should you both lay out the setup (policy type, autoReportingFrequency, approval mode (basic vs advanced), members list / who approves to who, category & tag approvers, order of expense creation w/ their category/tags)

I think we both have a clear understanding of each other's setups, it's just that we haven't reached an agreement on what should be displayed after the last tag rule approver has approved. 😄

I have the following setup:

  1. Control policy, Advanced Approval, the final approver is policy owner (no.25)
  2. the cat_1 approver is no.1, the cat_2 approver is no.2, the tag_3 approver is no.3, the tag_4 approver is no.4.
  3. submitter (no.24) creates 4 expenses in this order: tag_3, tag_4, cat_1, cat_2.
  4. In my tests, both the frontend and backend are able to correctly move from no.1 to no.2, then to no.3, and then to no.4. But after the approval by no.4, the frontend only shows no further action required!, and the backend can correctly return waiting for no.25 to approve (i.e., the policy owner):
    no.4.mov

@Beamanator
Copy link
Contributor

Thanks @ntdiary that's very helpful! Can you also please show what the approval workflow looks like? I see you mention "the final approver is policy owner (no.25)" but I would love to see how that's set up in your employeeList just to confirm 🙏 everything else makes complete sense!

@ntdiary
Copy link
Contributor

ntdiary commented Dec 7, 2024

@Beamanator, this employeeList?
image

image

For easier testing, my account name matches the email number. e.g., no.1 corresponds to [email protected]. :)

approval flow: submitter(no.24) -> no.1 -> no.2 -> no.3 -> no.4 -> policy owner(no.25)

submitter-no.1-no.2.mp4
no.2-no.3-no.4-no.25.mp4

@Beamanator
Copy link
Contributor

Thanks @ntdiary ! 👍

Ok ya so it IS expected that, in your case, the policy owner is the final approver - this is because the submitter's submitsTo is the policy owner, not because we want to always end with policy owner 👍

@nkdengineer
Copy link
Contributor Author

@Beamanator So it's not a bug, right?

@Beamanator
Copy link
Contributor

Right, in @ntdiary 's case at least, it's not a backend bug, it is expected for the submitsTo to approve (in advanced approval case) AFTER all of the rule approvers

@ntdiary
Copy link
Contributor

ntdiary commented Dec 10, 2024

Right, in @ntdiary 's case at least, it's not a backend bug, it is expected for the submitsTo to approve (in advanced approval case) AFTER all of the rule approvers

@Beamanator, yeah, as I mentioned earlier, the backend works well, it's just that the frontend didn't correctly add the policy owner to the approval chain, I will continue testing soon. If you also feel this isn’t a blocker, we can ignore it here, just hope it won't be treated as a regression or bug in future QA tests. :)

@Beamanator
Copy link
Contributor

Beamanator commented Dec 10, 2024 via email

@ntdiary
Copy link
Contributor

ntdiary commented Dec 10, 2024

image

BTW, @Beamanator, curious, can we have multiple tag approvers for 1 single expense? So far, I’ve only seen that a regular tag can have just one approver. Although we have multi-level tags, it seems like approvers can’t be assigned to them yet?

image image

@Beamanator
Copy link
Contributor

@ntdiary yikes, yeah in OldDot I'm struggling to even get multi-level tags set up in a policy 🙈

I guess NewDot doesn't support multiple tags even at the moment, so probably won't support multiple tag approvers for a bit, so I would say we can skip that part of tests / sorting & add it in later whenever that's added to the app

@Beamanator
Copy link
Contributor

So what's the status of this PR? @nkdengineer are you waiting on anyone for anything?

@ntdiary
Copy link
Contributor

ntdiary commented Dec 12, 2024

Ya thanks for getting us full circle 😂 I honestly do think this is something we need to fix in this issue - agreed we don’t want this to be counted as a regression later

I think this is the last major problem that needs to be addressed. :D
cc @nkdengineer

return 1;
}

return (transA.inserted ?? '') < (transB.inserted ?? '') ? -1 : 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe this field should be required? If it's optional, creating multiple transactions offline could lead to a sorting problem due to this field being missing. If it's required, the frontend might need to include inserted: DateUtils.getDBTime() in the buildOptimisticTransaction?
cc @nkdengineer

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Make senses

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think we can make it optional and update it in buildOptimisticTransaction because the draft transaction don't need to add this field.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ntdiary I updated.

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.

3 participants