Skip to content

Commit

Permalink
feat: 🎸 update mvm
Browse files Browse the repository at this point in the history
  • Loading branch information
divisey committed Aug 14, 2023
1 parent 74027ce commit b871d78
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/mvm/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,6 @@ export default class MVM extends EventEmitter {
this.contractOpt = new ContractOpt(library);
this.connected = true;
this.api.config(user.key);

provider.on("accountsChanged", () => this.disconnect());
provider.on("chainChanged", (chain) => {
if (chain !== MVMChain.chainId) {
this.disconnect();
}
});
provider.on("disconnect", () => this.disconnect());
}

public disconnect() {
Expand Down

0 comments on commit b871d78

Please sign in to comment.