Skip to content

Commit

Permalink
updated enum name per PR suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
sethkfman committed Apr 2, 2021
1 parent 9dfbb7d commit c420f02
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/transaction/TransactionController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ export enum TransactionStatus {
}

/**
* The device that confirmed a transaction.
* Options for wallet device.
*/
export enum ConfirmedDeviceTransaction {
export enum WalletDevice {
MM_MOBILE = 'metamask_mobile',
MM_EXTENSION = 'metamask_extension',
OTHER = 'other_device',
Expand All @@ -110,7 +110,7 @@ type TransactionMetaBase = {
transaction: Transaction;
transactionHash?: string;
blockNumber?: string;
deviceConfirmedOn?: ConfirmedDeviceTransaction;
deviceConfirmedOn?: WalletDevice;
};

/**
Expand Down Expand Up @@ -428,7 +428,7 @@ export class TransactionController extends BaseController<TransactionConfig, Tra
async addTransaction(
transaction: Transaction,
origin?: string,
deviceConfirmedOn?: ConfirmedDeviceTransaction,
deviceConfirmedOn?: WalletDevice,
): Promise<Result> {
const network = this.context.NetworkController as NetworkController;
const { transactions } = this.state;
Expand Down

0 comments on commit c420f02

Please sign in to comment.