Skip to content

Commit

Permalink
Merge pull request #505 from rsrbk/rsrbk/trust-name
Browse files Browse the repository at this point in the history
[Trust] update wallet parameter name
  • Loading branch information
jordaaash authored Aug 5, 2022
2 parents 85a5375 + e797d09 commit 31ae360
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/wallets/trust/src/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ interface TrustWallet extends EventEmitter<TrustWalletEvents> {
}

interface TrustWindow extends Window {
trust?: {
trustwallet?: {
solana?: TrustWallet;
};
}
Expand Down Expand Up @@ -72,7 +72,7 @@ export class TrustWalletAdapter extends BaseMessageSignerWalletAdapter {

if (this._readyState !== WalletReadyState.Unsupported) {
scopePollingDetectionStrategy(() => {
if (window.trust?.solana?.isTrust) {
if (window.trustwallet?.solana?.isTrust) {
this._readyState = WalletReadyState.Installed;
this.emit('readyStateChange', this._readyState);
return true;
Expand Down Expand Up @@ -106,7 +106,7 @@ export class TrustWalletAdapter extends BaseMessageSignerWalletAdapter {
this._connecting = true;

// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const wallet = window!.trust!.solana!;
const wallet = window!.trustwallet!.solana!;

if (!wallet.isConnected) {
try {
Expand Down

0 comments on commit 31ae360

Please sign in to comment.