Skip to content

Commit

Permalink
fix: correct logic in supportsNetwork method to properly check networ…
Browse files Browse the repository at this point in the history
…k names
  • Loading branch information
arentant committed Dec 30, 2024
1 parent 701fcda commit 3073a56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/balances/providers/fuelBalanceProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import retryWithExponentialBackoff from "../../retryWithExponentialBackoff";

export class FuelBalanceProvider {
supportsNetwork(network: NetworkWithTokens): boolean {
return (KnownInternalNames.Networks.FuelMainnet || KnownInternalNames.Networks.FuelTestnet).includes(network.name)
return KnownInternalNames.Networks.FuelMainnet.includes(network.name) || KnownInternalNames.Networks.FuelTestnet.includes(network.name)
}

fetchBalance = async (address: string, network: NetworkWithTokens) => {
Expand Down

0 comments on commit 3073a56

Please sign in to comment.