Skip to content

Commit

Permalink
Merge pull request #366 from karancoder/kjivani/leap-suggestCW20Tokens
Browse files Browse the repository at this point in the history
update suggestToken with suggestCW20Token for leap-extension
  • Loading branch information
liujun93 authored Nov 24, 2023
2 parents e15c5dd + f8d44ef commit dd07361
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion wallets/leap-extension/src/extension/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class LeapClient implements WalletClient {
async suggestToken({ chainId, tokens, type }: SuggestToken) {
if (type === 'cw20') {
for (const { contractAddress } of tokens) {
await this.client.suggestToken(chainId, contractAddress);
await this.client.suggestCW20Token(chainId, contractAddress);
}
}
}
Expand Down
1 change: 1 addition & 0 deletions wallets/leap-extension/src/extension/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export interface Leap {
disconnect(): Promise<void>;
enable(chainIds: string | string[]): Promise<void>;
suggestToken(chainId: string, contractAddress: string): Promise<void>;
suggestCW20Token(chainId: string, contractAddress: string): Promise<void>;
mode: 'extension';
getKey(chainId: string): Promise<Key>;
getOfflineSigner(chainId: string): OfflineAminoSigner & OfflineDirectSigner;
Expand Down

0 comments on commit dd07361

Please sign in to comment.