Skip to content

Commit ac6206b

Browse files
johanneskaresjxom
andauthored
feat: add Trust Wallet Support for sendCalls experimental_fallback (#4008)
* Add Trust Wallet Support for sendCalls experimental_fallback * Create pink-turkeys-applaud.md --------- Co-authored-by: jxom <7336481+jxom@users.noreply.github.com>
1 parent 248348c commit ac6206b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.changeset/pink-turkeys-applaud.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"viem": patch
3+
---
4+
5+
Added Trust Wallet Support for `sendCalls` with `experimental_fallback`.

src/actions/wallet/sendCalls.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,10 @@ export async function sendCalls<
168168
.includes('account upgraded to unsupported contract') ||
169169
error.details.toLowerCase().includes('eip-7702 not supported') ||
170170
error.details.toLowerCase().includes('unsupported wc_ method') ||
171-
error.details.toLowerCase().includes('feature toggled misconfigured'))
171+
// magic.link
172+
error.details.toLowerCase().includes('feature toggled misconfigured') ||
173+
// Trust Wallet
174+
error.details.toLowerCase().includes('jsonrpcengine: response has no error or result for request'))
172175
) {
173176
if (capabilities) {
174177
const hasNonOptionalCapability = Object.values(capabilities).some(

0 commit comments

Comments
 (0)