Skip to content

Commit 4cfe84b

Browse files
committed
Rename rawTransaction to rawTx
1 parent 2eae361 commit 4cfe84b

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

packages/transaction-controller/src/TransactionController.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -578,8 +578,8 @@ export class TransactionController extends BaseController<
578578
unsignedEthTx,
579579
transactionMeta.transaction.from,
580580
);
581-
const rawTransaction = bufferToHex(signedTx.serialize());
582-
await query(this.ethQuery, 'sendRawTransaction', [rawTransaction]);
581+
const rawTx = bufferToHex(signedTx.serialize());
582+
await query(this.ethQuery, 'sendRawTransaction', [rawTx]);
583583
transactionMeta.estimatedBaseFee = estimatedBaseFee;
584584
transactionMeta.status = TransactionStatus.cancelled;
585585
this.hub.emit(`${transactionMeta.id}:finished`, transactionMeta);
@@ -680,9 +680,9 @@ export class TransactionController extends BaseController<
680680
unsignedEthTx,
681681
transactionMeta.transaction.from,
682682
);
683-
const rawTransaction = bufferToHex(signedTx.serialize());
683+
const rawTx = bufferToHex(signedTx.serialize());
684684
const transactionHash = await query(this.ethQuery, 'sendRawTransaction', [
685-
rawTransaction,
685+
rawTx,
686686
]);
687687
const baseTransactionMeta = {
688688
...transactionMeta,
@@ -1044,12 +1044,12 @@ export class TransactionController extends BaseController<
10441044
const signedTx = await this.sign(unsignedEthTx, from);
10451045
transactionMeta.status = TransactionStatus.signed;
10461046
this.updateTransaction(transactionMeta);
1047-
const rawTransaction = bufferToHex(signedTx.serialize());
1047+
const rawTx = bufferToHex(signedTx.serialize());
10481048

1049-
transactionMeta.rawTransaction = rawTransaction;
1049+
transactionMeta.rawTx = rawTx;
10501050
this.updateTransaction(transactionMeta);
10511051
const transactionHash = await query(this.ethQuery, 'sendRawTransaction', [
1052-
rawTransaction,
1052+
rawTx,
10531053
]);
10541054
transactionMeta.transactionHash = transactionHash;
10551055
transactionMeta.status = TransactionStatus.submitted;

packages/transaction-controller/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ type TransactionMetaBase = {
7171
/**
7272
* Hex representation of the underlying transaction.
7373
*/
74-
rawTransaction?: string;
74+
rawTx?: string;
7575

7676
/**
7777
* Timestamp associated with this transaction.

0 commit comments

Comments
 (0)