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

A-1206908284153320: switch to api v2 #133

Merged
merged 11 commits into from
Apr 1, 2024
Merged

Conversation

anyxem
Copy link
Contributor

@anyxem anyxem commented Mar 30, 2024

💬 Description

Switched to API v2

Bug fix of the cases when server return Mempool error: Transaction does not pay sufficient fees to be relayed

Bugfix for Signature errors by using more precise BigInt across functions related to collecting data to server. UI using floats or casting to Numbers

More

  • Refactoring user validation to improve code readability
  • Improving account creation tests to verify if the password set is strong enough

📋 Checklist:

  • I have named my branch as A-[id of Asana task]
  • I have set the title of my PR as A-[id of Asana task]: [short description]
  • My changes passed successfully by prettier check
  • My changes passed successfully by lint check
  • My changes kept the previous test coverage rate
  • I have added enough tests for my new feature/bugfix
  • I have set at least one person to review this PR
  • I have set myself as the assignee of this PR
  • I have set at least one label to this PR

@anyxem anyxem changed the base branch from main to dev March 30, 2024 02:56
@anyxem anyxem added the enhancement New feature or request label Mar 30, 2024
@anyxem anyxem closed this Mar 30, 2024
@anyxem anyxem reopened this Mar 30, 2024
@@ -106,6 +109,19 @@ const SendTransaction = ({
setPassValidity(false)
setPass('')
setAllowClosing(true)
} else if (e.message.includes('minimum fee')) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For the cases when fee was not calculates properly, then provided by server.

@@ -56,19 +59,40 @@ const getTxInput = async (outpointSourceId) => {
)
}

const getTransactionUtxos = (utxos, amountToUse, fee = 0) => {
let balance = 0
/**
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added comment with small explanation how was fixed fee error

@anyxem anyxem requested a review from owlsua March 30, 2024 13:19
@anyxem
Copy link
Contributor Author

anyxem commented Mar 30, 2024

Reverted error 870b8f7 because Tx error may be overwritten with empty string. Different errors handling could be done in scope of refactoring

@anyxem
Copy link
Contributor Author

anyxem commented Apr 1, 2024

Screenshot 2024-04-01 at 11 08 49 added datetime lookup

@anyxem
Copy link
Contributor Author

anyxem commented Apr 1, 2024

Screenshot 2024-04-01 at 12 36 47 fixed delegation_id display

@owlsua owlsua merged commit 24d09e9 into dev Apr 1, 2024
@owlsua owlsua deleted the A-1206908284153320-v2-upgrade branch April 1, 2024 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants