Skip to content

Conversation

Aniket-Engg
Copy link
Collaborator

@Aniket-Engg Aniket-Engg commented Apr 28, 2025

Related to #5718 (comment)

Copy link

netlify bot commented Apr 28, 2025

Deploy Preview for remixproject ready!

Name Link
🔨 Latest commit d450836
🔍 Latest deploy log https://app.netlify.com/sites/remixproject/deploys/6814dadef9763b0008e096d1
😎 Deploy Preview https://deploy-preview-5978--remixproject.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Aniket-Engg Aniket-Engg added ready-to-review PR ready to review and removed WIP labels May 1, 2025
@Aniket-Engg Aniket-Engg changed the title create smart account support for Gnosis chiado Refactor AA code to support more chains May 1, 2025
@Aniket-Engg Aniket-Engg requested a review from yann300 May 1, 2025 10:00
}
if (tx.fromSmartAccount && tx.value === "0" && err && err.error && err.error.indexOf('insufficient funds for transfer') !== -1) {
// Do not show dialog for insufficient funds as smart account may be using paymaster
if (tx.fromSmartAccount && tx.value === "0" && (
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 need to find a better way to check that...
below you are checking against err.error and not err..
should that be: err && err.error..indexOf('gas required exceeds allowance (0)') ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

updated

async sendUserOp (tx) {
async sendUserOp (tx, chainId) {
// AA03: Add network name and public URL to support contract transactions using smart account
const aaSupportedNetworks = {
Copy link
Contributor

Choose a reason for hiding this comment

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

these constants should be put in an helper, so you don't duplicate it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@Aniket-Engg Aniket-Engg force-pushed the aaChiado branch 3 times, most recently from fa853d2 to 52989ee Compare May 2, 2025 11:23
@yann300 yann300 enabled auto-merge (rebase) May 2, 2025 15:13
@yann300 yann300 merged commit 5033474 into master May 2, 2025
33 checks passed
@yann300 yann300 deleted the aaChiado branch May 2, 2025 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-review PR ready to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants