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

raps failures fix #740

Merged
merged 5 commits into from
Jul 17, 2023
Merged

raps failures fix #740

merged 5 commits into from
Jul 17, 2023

Conversation

brunobar79
Copy link
Member

Fixes BX-####
Figma link (if any):

What changed (plus any additional context for devs)

Before executing a new Rap action, make sure the node actually ack the last tx by calling eth_getTransaction, that way we avoid have failures like future transaction tries to replace pending

Screen recordings / screenshots

What to test

Final checklist

  • I have tested my changes in a LavaMoat bundle (yarn build).
  • I have tested my changes in Chrome & Brave.
  • If your changes are visual, did you check both the light and dark themes?

@brunobar79 brunobar79 marked this pull request as draft July 7, 2023 23:58
@github-actions
Copy link

github-actions bot commented Jul 8, 2023

Here's the packed extension for this build:
node_modules.tar.gz
rainbowbx-04f6938c84df2658705f1d5ec60579b2d0c3dc59.zip

@brunobar79 brunobar79 marked this pull request as ready for review July 8, 2023 02:33
@github-actions
Copy link

github-actions bot commented Jul 8, 2023

Here's the packed extension for this build:
node_modules.tar.gz
rainbowbx-c85f5e77e80c12019666ad6fa6668b82c832236d.zip

@github-actions
Copy link

github-actions bot commented Jul 8, 2023

Here's the packed extension for this build:
rainbowbx-e8f93894f33b3252a562202d920c5572ac1c6cf1.zip

// eslint-disable-next-line no-await-in-loop
await executeAction(actionParams);
const { hash } = await executeAction(actionParams);
hash && (await waitForNodeAck(hash, wallet.provider));
Copy link
Contributor

Choose a reason for hiding this comment

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

i think we should only await if is not the last action, if is the last action we'd be delaying the execution of this method for no reason

Copy link
Member Author

Choose a reason for hiding this comment

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

good call!

@github-actions
Copy link

Here's the packed extension for this build:
rainbowbx-42219520fb1ea705cf0802f5e1f2c2fe7f98b301.zip

Copy link
Member

@derHowie derHowie left a comment

Choose a reason for hiding this comment

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

lgtm 👌

@brunobar79 brunobar79 merged commit d9cd96e into master Jul 17, 2023
@brunobar79 brunobar79 deleted the @bruno/raps-failures-fix branch July 17, 2023 14:46
@github-actions
Copy link

Here's the packed extension for this build:
rainbowbx-d9cd96ed950307aca3a96dd74128a460b2c36ae5.zip

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.

4 participants