Skip to content

Commit

Permalink
return null for switch chain success
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyapotti committed Jan 7, 2024
1 parent 3a77ddf commit 10061f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/network/NetworkController.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export default class NetworkController extends EventEmitter {
const req = this.getSwitchChainRequest(id)
switch (data.status) {
case 'approved':
return resolve()
return resolve('null')
case 'rejected':
return reject(ethErrors.provider.userRejectedRequest(`Torus switch chain method: ${req.errorMsg || 'User denied switch chain request.'}`))
default:
Expand Down

0 comments on commit 10061f0

Please sign in to comment.