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

fix: BX-1341 #1387

Merged
merged 2 commits into from
Mar 14, 2024
Merged

fix: BX-1341 #1387

merged 2 commits into from
Mar 14, 2024

Conversation

estebanmino
Copy link
Contributor

@estebanmino estebanmino commented Mar 8, 2024

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

What changed (plus any additional context for devs)

fixing ticket and returning true when request is accepted

#1382

Fixes #1382

Screen recordings / screenshots

What to test

Copy link

linear bot commented Mar 8, 2024

Copy link

github-actions bot commented Mar 8, 2024

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

@@ -165,7 +164,7 @@ export const WatchAsset = ({
});
}

approveRequest(null);
approveRequest(true);
Copy link
Contributor

Choose a reason for hiding this comment

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

looking at ApproveAppRequest.tsx seems like approveRequest and rejectRequest send the same msg to background but if the payload is null it considers a reject, shouldn't we solve it in that component?
I think AddEthereumChain.tsx also calls approveRequest(null)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah that's exactly the case, so we're sending true instead

maybe your AddEthereumChain is outdated https://github.com/rainbow-me/browser-extension/blob/master/src/entries/popup/pages/messages/AddEthereumChain/index.tsx#L79

Copy link

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

Copy link

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

@estebanmino estebanmino added this pull request to the merge queue Mar 14, 2024
Merged via the queue into master with commit 1f30f99 Mar 14, 2024
17 checks passed
@estebanmino estebanmino deleted the @esteban/BX-1341 branch March 14, 2024 16:06
greg-schrammel pushed a commit that referenced this pull request Mar 27, 2024
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.

wallet_watchAsset throws an error
3 participants