When am using smart contract function with promish then torus confirm popup show loader all time

Please provide the following details too when asking for help in this category:

  • SDK Version: “@web3auth/torus-wallet-connector-plugin”: “^7.1.1”,

  • Platform: Fanverse Chrome Browser

  • Browser Console Screenshots:

  • Related to Custom Authentication? Please provide the following info too: (Optional)

    • Verifier Name:
    • JWKS Endpoint:
    • Sample idToken(JWT)

Please provide the Web3Auth initialization and login code snippet below:

res = new Promise((resolve, reject) => {
contract.methods
.primaryBuy(
abc,
abcd,
buyer,
amount,
TokenBalance
)
.send(sendArgs, function (error: any, transactionHash: any) {
console.error({ transactionHash }, { error })
if (transactionHash) {
setActive(false)
resolve(transactionHash)
}
if (error) {
setActive(false)
console.error({ error })
toasts.error(error?.message)
reject(error)
}
})
})

@chahal.hrdeep Welcome Aboard!

Please share your Dapp URL to check the issue.

this my Website url please try to buy a nft after login with sepolia tesnet

Can you share the console logs from the page which is stuck in loading? We need that information.

Please check this video is after login process

I noticed that when you open Torus wallet from the plugin, the network is set as Main Ethereum and not Sepolia? Have you setup the network as Sepolia in the chainconfig for the plugin? You can click the dropdown arrow in the popup page and select Sepolia Testnet and then proceed.

image

const web3auth = new Web3Auth({
clientId, // get your client id from https://dashboard.web3auth.io
// web3AuthNetwork: OPENLOGIN_NETWORK.TESTNET,
web3AuthNetwork: “testnet”,
chainConfig: {
chainNamespace: CHAIN_NAMESPACES.EIP155,
displayName: displayName,
chainId: chainID,
rpcTarget: rpcTarget,
blockExplorer: etherScanUrl,
ticker: “ETH”,
tickerName: “Ethereum”,
},
uiConfig: {
appName: “Fanverse”,
theme: {
primary: “#FFA500”,
},
mode: themeInfo && themeInfo,
logoLight: blackLogo,
logoDark: whiteLogo,
defaultLanguage: “en”,
loginGridCol: 3, // 2 | 3
primaryButton: “emailLogin”,
loginMethodsOrder: [
“google”,
“apple”,
“facebook”,
“twitter”,
“linkedin”,
],
},
})

const torusPlugin = new TorusWalletConnectorPlugin({
torusWalletOpts: {
buttonPosition: “bottom-left”,
},
walletInitOptions: {
network: “testnet”,
whiteLabel: {
theme: {
isDark: themeInfo && themeInfo === “dark”,
colors: { primary: “#FFA500” },
},
logoDark: blackLogo,
logoLight: whiteLogo,
},
useWalletConnect: true,
enableLogging: true,
},
})

this is the code

yes am setup sepolia chain id in this code chainID = 0xaa36a7

still same loading… its wokring some time after too much refresh

Can you share the entire Sepolia RPC details you have?

Try using one of the RPC URLs from this link Sepolia RPC and Chain settings | Chainlist instead of the Infura URL you are using

Still same issue appear

Try this RPC https://endpoints.omniatech.io/v1/eth/sepolia/public

https://endpoints.omniatech.io/v1/eth/sepolia/public

Still same issue i think its not because of rpc

The issue is that Torus Network shows as Undefined in the console logs:

Can you add the Custom Network when you click the Open wallet button from the plugin.

Follow this article: How do I add a Custom RPC network to Torus Wallet? | Web3Auth Helpdesk

There is a solved thread regarding Sepolia network as well you can refer to :Problems of "Sepolia" and "Sepolia Test Network"

please check this video for my code setup and problem still same

Still Same issue not improve

Ok, I have forwarded your issue to our Dev team and we will get back with further updates.