diff --git a/packages/plugin-infra/src/web3-state/Provider.ts b/packages/plugin-infra/src/web3-state/Provider.ts index f712d5a94370..080adc4b39ef 100644 --- a/packages/plugin-infra/src/web3-state/Provider.ts +++ b/packages/plugin-infra/src/web3-state/Provider.ts @@ -179,8 +179,8 @@ export class ProviderState< } // update local storage - await this.setAccount(providerType, account) await this.setProvider(providerType) + await this.setAccount(providerType, account) provider.emitter.emit('connect', account) return account diff --git a/packages/plugins/Solana/src/apis/shared.ts b/packages/plugins/Solana/src/apis/shared.ts index 73be8f30a80e..a1876f942e5a 100644 --- a/packages/plugins/Solana/src/apis/shared.ts +++ b/packages/plugins/Solana/src/apis/shared.ts @@ -72,6 +72,7 @@ export interface ProgramAccount { export type GetProgramAccountsResponse = RpcResponse let id = 0 + export async function requestRPC(chainId: ChainId, options: RpcOptions): Promise { const endpoint = NETWORK_ENDPOINTS[chainId] id += 1