-
Notifications
You must be signed in to change notification settings - Fork 97
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
Updated fee logic #4611
Updated fee logic #4611
Conversation
…desktop into 4529-update-native-token-tx-fees
src/modules/transaction/api/index.js
Outdated
...transactionObject, | ||
params: { | ||
...transactionObject.params, | ||
signatures: new Array(numberOfSignatures).fill(0).map(() => Buffer.alloc(64)), |
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.
Also, I think this should not be done this way only empty signatures should be replaced with an empty buffer, this is because when members are signing, there could be empty signatures(meaning a member is yet to sign) and there could be actual signatures(meaning a member has signed). so in this case I think it can be done like this @ikem-legend
signatures: new Array(numberOfSignatures).fill(0).map(() => Buffer.alloc(64)), | |
...(numberOfSignatures && !transactionObject.params. signatures.length && { signatures: Array(numberOfSignatures).fill(Buffer.alloc(64)) }) , |
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.
@eniolam1000752 Fixed
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.
LGTM
What was the problem?
This PR resolves #4529
How was it solved?
By updating the fee calculation logic
How was it tested?