Skip to content

Commit 7bada11

Browse files
authored
Merge pull request #450 from AlbinMonsimier/updateTokenList
update token list & token mint resolver
2 parents 5fbb059 + cf6ac25 commit 7bada11

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/Solnet.Extensions/Models/TokenMint/TokenDef.cs

-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
using System.Threading.Tasks;
63

74
namespace Solnet.Extensions.TokenMint
85
{
@@ -140,8 +137,6 @@ internal TokenDef CloneWithKnownDecimals(int decimalPlaces)
140137
TokenProjectUrl = this.TokenProjectUrl
141138
};
142139
}
143-
144-
145140
}
146141

147142
/// <summary>

src/Solnet.Extensions/TokenMintResolver.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class TokenMintResolver : ITokenMintResolver
2121
/// <summary>
2222
/// The URL of the standard token list
2323
/// </summary>
24-
private const string TOKENLIST_GITHUB_URL = "https://raw.githubusercontent.com/solana-labs/token-list/main/src/tokens/solana.tokenlist.json";
24+
private const string TOKENLIST_GITHUB_URL = "https://cdn.jsdelivr.net/gh/solflare-wallet/token-list@latest/solana-tokenlist.json";
2525

2626
/// <summary>
2727
/// Internal lookfor for resolving mint public key addresses to TokenDef objects.

0 commit comments

Comments
 (0)