Skip to content

Commit a999ffb

Browse files
chore: add revert transaction type (#5468)
## Explanation Add `revokeDelegation` to `TransactionType`. ## References ## Changelog See `CHANGELOG.md`. ## Checklist - [x] I've updated the test suite for new or updated code as appropriate - [x] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate - [x] I've highlighted breaking changes using the "BREAKING" category above as appropriate - [x] I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes
1 parent 97a7447 commit a999ffb

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

packages/transaction-controller/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111

12+
- Add `revertDelegation` to `TransactionType` ([#5468](https://github.com/MetaMask/core/pull/5468))
1213
- Add optional batch ID to metadata ([#5462](https://github.com/MetaMask/core/pull/5462))
1314
- Add optional `batchId` property to `TransactionMeta`.
1415
- Add optional `transactionHash` to `TransactionReceipt`.

packages/transaction-controller/src/types.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,12 @@ export enum TransactionType {
618618
*/
619619
retry = 'retry',
620620

621+
/**
622+
* Remove the code / delegation from an upgraded EOA.
623+
* Introduced in EIP-7702.
624+
*/
625+
revokeDelegation = 'revokeDelegation',
626+
621627
/**
622628
* A transaction sending a network's native asset to a recipient.
623629
*/

0 commit comments

Comments
 (0)