Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Action:Transaction: remove unused prepareFullTransaction Fn #6597

Merged
merged 1 commit into from
Jun 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 0 additions & 30 deletions app/actions/transaction/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,36 +85,6 @@ export function prepareTransaction(transaction) {
};
}

blackdevelopa marked this conversation as resolved.
Show resolved Hide resolved
/**
* Sets transaction object to be sent. All properties can be updated
*
* @param {object} config
* @param {object} config.transaction - Transaction object with from, to, data, gas, gasPrice, value
* @param {string} config.ensRecipient - Resolved ens name to send the transaction to
* @param {string} config.transactionToName - Resolved address book name for to address
* @param {string} config.transactionFromName - Resolved address book name for from address
* @param {object} config.selectedAsset - Asset to start the transaction with
* @param {string} config.assetType - The selectedAsset's type
*/
export function prepareFullTransaction({
transaction,
ensRecipient,
transactionToName,
transactionFromName,
selectedAsset,
assetType,
}) {
return {
type: 'PREPARE_FULL_TRANSACTION',
transaction,
ensRecipient,
transactionToName,
transactionFromName,
selectedAsset,
assetType,
};
}

/**
* Sets any attribute in transaction object
*
Expand Down