You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When executing a multiple transactions inside of one transaction component, I would like the behavior to remain unchanged for coinbase smart wallets (a batch tx) however, for EOAs and other wallets that do not support batched transactions, I would like the transaction component to automatically fallback to a multicall.
This would allow me as a developer to write the transaction button once and support multiple transactions for all wallets.
This example code will work for a coinbase smart wallet but not an EOA like metamask:
To accomplish this today, I will need to detect if the user is not connected with a cb smart wallet and then write a new transaction component for the multicall. This means that if I make a change to how the transactions work, I will need to remember to update the logic in multiple places.
The text was updated successfully, but these errors were encountered:
Describe the solution you'd like
When executing a multiple transactions inside of one transaction component, I would like the behavior to remain unchanged for coinbase smart wallets (a batch tx) however, for EOAs and other wallets that do not support batched transactions, I would like the transaction component to automatically fallback to a multicall.
This would allow me as a developer to write the transaction button once and support multiple transactions for all wallets.
This example code will work for a coinbase smart wallet but not an EOA like metamask:
Describe alternatives you've considered.
To accomplish this today, I will need to detect if the user is not connected with a cb smart wallet and then write a new transaction component for the multicall. This means that if I make a change to how the transactions work, I will need to remember to update the logic in multiple places.
The text was updated successfully, but these errors were encountered: