mirror of https://github.com/certusone/oyster.git
Fixed cache getting program accounts instead of wallet ASA (#192)
* fixed button with no provider * fixed mint key on native sol tokens and wwt eth, eth -> sol * fixed cached getting program accounts instead of wallet ASA
This commit is contained in:
parent
e0c9ca80a7
commit
4f5f0db2e6
|
@ -93,7 +93,10 @@ export const toSolana = async (
|
|||
.byParser(TokenAccountParser)
|
||||
.map(key => {
|
||||
let account = cache.get(key) as ParsedAccount<AccountInfo>;
|
||||
if (account?.info.mint.toBase58() === mintKey.toBase58()) {
|
||||
if (
|
||||
account?.info.mint.toBase58() === mintKey.toBase58() &&
|
||||
account?.info.owner.toBase58() === wallet?.publicKey?.toBase58()
|
||||
) {
|
||||
return key;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue