Skip to content

Commit

Permalink
Change chainId in mockConnector (#137)
Browse files Browse the repository at this point in the history
* Change chainId in mockConnector

* Create chilled-hounds-double.md
  • Loading branch information
nezouse authored Apr 6, 2021
1 parent ac67f13 commit 7d56483
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/chilled-hounds-double.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@usedapp/testing": patch
---

Change chainId in mockConnector
2 changes: 1 addition & 1 deletion packages/testing/src/mockConnector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { MockProvider } from '@ethereum-waffle/provider'
// Modified from https://github.com/NoahZinsmeister/web3-react/blob/v6/packages/network-connector/src/index.ts
export class MockConnector extends AbstractConnector {
private provider: any
private chainId = 469
private chainId = 1337

constructor(provider?: any) {
super()
Expand Down

0 comments on commit 7d56483

Please sign in to comment.