Skip to content

Commit

Permalink
Add debug
Browse files Browse the repository at this point in the history
  • Loading branch information
gitzhou committed Dec 11, 2023
1 parent 3f8c485 commit 1d6022c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ordiProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ export class OrdiProvider extends Provider {

updateNetwork(network: bsv.Networks.Network): void {
this.network = network
console.log(`update network for OrdiProvider: ${network}`)
console.log(`before, this._provider.network: ${this._provider.getNetwork()}`)
this._provider.updateNetwork(network)
console.log(`after, this._provider.network: ${this._provider.getNetwork()}`)
this.emit('networkChange', network)
}

Expand Down

0 comments on commit 1d6022c

Please sign in to comment.