Adjust linter errors.

This commit is contained in:
Filipe Soccol
2025-04-15 15:40:37 -03:00
parent 9fa2b34a5d
commit 4908dff58b
22 changed files with 169 additions and 166 deletions

View File

@@ -13,8 +13,9 @@ const getPublicClient = (onlyRpcProvider = false) => {
const user = useUser();
const rpcUrl = getProviderUrl();
return createPublicClient({
chain: Number(user.networkName.value) === sepolia.id ? sepolia : rootstock,
transport: http(rpcUrl)
chain:
Number(user.networkName.value) === sepolia.id ? sepolia : rootstock,
transport: http(rpcUrl),
});
}
return publicClient;
@@ -35,16 +36,17 @@ const getContract = async (onlyRpcProvider = false) => {
const connectProvider = async (p: any): Promise<void> => {
console.log("Connecting to provider...");
const user = useUser();
const chain = Number(user.networkName.value) === sepolia.id ? sepolia : rootstock;
const chain =
Number(user.networkName.value) === sepolia.id ? sepolia : rootstock;
publicClient = createPublicClient({
chain,
transport: custom(p)
transport: custom(p),
});
walletClient = createWalletClient({
chain,
transport: custom(p)
transport: custom(p),
});
await updateWalletStatus();