Skip to content

Commit

Permalink
chore: add types for confirmtx (legacy)
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Mucha <[email protected]>
  • Loading branch information
drptbl committed Oct 31, 2022
1 parent 65e560b commit 5a87a5c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions support/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,14 @@ declare namespace Cypress {
*/
acceptMetamaskAccess(allAccounts?: boolean): Chainable<Subject>;
/**
* Confirm metamask atransaction
* Confirm metamask transaction (auto-detects eip-1559 and legacy transactions)
* @example
* cy.confirmMetamaskTransaction()
* cy.confirmMetamaskTransaction({gasLimit: 1000000, baseFee: 20, priorityFee: 20})
* cy.confirmMetamaskTransaction({ gasLimit: 1000000, baseFee: 20, priorityFee: 20 }) // eip-1559
* cy.confirmMetamaskTransaction({ gasLimit: 1000000, gasPrice: 20 }) // legacy
* cy.confirmMetamaskTransaction('aggressive') // eip-1559 only! => available options: 'low', 'market', 'aggressive', 'site' (site is usually by default)
*/
confirmMetamaskTransaction(gasConfig?: object): Chainable<Subject>;
confirmMetamaskTransaction(gasConfig?: object | string): Chainable<Subject>;
/**
* Reject metamask transaction
* @example
Expand Down

0 comments on commit 5a87a5c

Please sign in to comment.