-
Notifications
You must be signed in to change notification settings - Fork 71
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: change note type to string #622
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really understand why note would not be string anymore, it's specified as a string.
Based on the test, it looks like requestNetwork/packages/advanced-logic/test/utils/payment-network/any/generator-data-create.ts Line 12 in 7c7e64e
I'm not sure which is the source of truth but this test has been there for 3 years based on the git commit @yomarion |
7c7e64e
to
50cd30c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think any
is better because declarative's actions are now very generic.
Only string is too restrictive. For example in our case of manual payment declaration on a crypto request:
{ transactionHash: '0x12345' }
is more explicit than only "0x12345".
@yomarion @kevindavee |
It's defined here as a string. What is it if it's not a string? It should be defined clearly before changing the whole implementation. |
I don't know the historical why there's a discrepancy between the types in |
@vrolland can you review this PR again as we have reached a consensus to have |
Description of the changes
note
should be typestring
. Changing the test and the Typescript type.