Skip to content

Commit 4e60c0a

Browse files
committed
fix(sdk): allow ecosystem wallet to be gasless
1 parent 67305d3 commit 4e60c0a

File tree

1 file changed

+2
-1
lines changed
  • packages/thirdweb/src/react/core/utils

1 file changed

+2
-1
lines changed

packages/thirdweb/src/react/core/utils/wallet.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { resolveName } from "../../../extensions/ens/resolve-name.js";
77
import { shortenAddress } from "../../../utils/address.js";
88
import { parseAvatarRecord } from "../../../utils/ens/avatar.js";
99
import { getWalletInfo } from "../../../wallets/__generated__/getWalletInfo.js";
10+
import { isEcosystemWallet } from "../../../wallets/ecosystem/is-ecosystem-wallet.js";
1011
import type { Account, Wallet } from "../../../wallets/interfaces/wallet.js";
1112
import type { WalletInfo } from "../../../wallets/wallet-info.js";
1213
import type { WalletId } from "../../../wallets/wallet-types.js";
@@ -223,7 +224,7 @@ export function hasSponsoredTransactionsEnabled(wallet: Wallet | undefined) {
223224
sponsoredTransactionsEnabled = options.gasless;
224225
}
225226
}
226-
if (wallet && wallet.id === "inApp") {
227+
if (wallet && (wallet.id === "inApp" || isEcosystemWallet(wallet))) {
227228
const options = (wallet as Wallet<"inApp">).getConfig();
228229
if (options && "smartAccount" in options && options.smartAccount) {
229230
const smartOptions = options.smartAccount;

0 commit comments

Comments
 (0)