Skip to content

Commit

Permalink
wallet-ext: fix ApiProvider using cached signer
Browse files Browse the repository at this point in the history
* clear cached signer when switching networks to avoid using the signer for the wrong network
  • Loading branch information
pchrysochoidis committed Jul 15, 2022
1 parent 58340e1 commit ec92798
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wallet/src/ui/app/ApiProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export default class ApiProvider {
this._apiFullNodeProvider = new JsonRpcProvider(
getDefaultAPI(apiEnv).fullNode
);
this._signer = null;
}

public get instance() {
Expand Down

0 comments on commit ec92798

Please sign in to comment.