Skip to content

Commit

Permalink
fix(PORTAL-3114):switch network error (#1038)
Browse files Browse the repository at this point in the history
  • Loading branch information
zctocm authored May 19, 2022
1 parent 44b568d commit b6adc81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .yarn/versions/59c47033.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declined:
- "@fluent-wallet/wallet_set-app-current-network"
3 changes: 2 additions & 1 deletion packages/rpcs/wallet_setAppCurrentNetwork/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export const main = ({
account: app.currentAccount.eid,
network: nextNetwork.eid,
})
post({event: 'accountsChanged', params: [addr.value]})
//sometimes, if you authorize a hardware ledger account under ethereum to dapp, when you switch to conflux network, you cannot get addr
post({event: 'accountsChanged', params: [addr?.value]})
}
}

0 comments on commit b6adc81

Please sign in to comment.