Skip to content

Commit

Permalink
update requestPermittedChains jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
jiexi committed Dec 16, 2024
1 parent fd1f931 commit e741f74
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/scripts/metamask-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -5392,6 +5392,10 @@ export default class MetamaskController extends EventEmitter {
/**
* Requests permittedChains permission for the specified origin
* and replaces any existing CAIP-25 permission with a new one.
* Allows for granting without prompting for user approval which
* would be used as part of flows like `wallet_addEthereumChain`
* requests where the addition of the network and the permitting
* of the chain are combined into one approval.
*
* @param {string} origin - The origin to request approval for.
* @param {Hex} chainId - The chainId to add incrementally.
Expand Down Expand Up @@ -5433,6 +5437,10 @@ export default class MetamaskController extends EventEmitter {
/**
* Requests incremental permittedChains permission for the specified origin.
* and updates the existing CAIP-25 permission.
* Allows for granting without prompting for user approval which
* would be used as part of flows like `wallet_addEthereumChain`
* requests where the addition of the network and the permitting
* of the chain are combined into one approval.
*
* @param {string} origin - The origin to request approval for.
* @param {Hex} chainId - The chainId to add incrementally.
Expand Down

0 comments on commit e741f74

Please sign in to comment.