aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/controllers/transactions.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/scripts/controllers/transactions.js')
-rw-r--r--app/scripts/controllers/transactions.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/scripts/controllers/transactions.js b/app/scripts/controllers/transactions.js
index a73a8b36d..0b78d62f1 100644
--- a/app/scripts/controllers/transactions.js
+++ b/app/scripts/controllers/transactions.js
@@ -315,6 +315,18 @@ module.exports = class TransactionController extends EventEmitter {
//
_normalizeTxParams (txParams) {
+ const acceptableKeys = [
+ 'from',
+ 'to',
+ 'nonce',
+ 'value',
+ 'data',
+ 'gas',
+ 'gasPrice',
+ ]
+ Object.keys(txParams).forEach((key) => {
+ if (!acceptableKeys.includes(key)) delete txParams[key]
+ })
delete txParams.chainId
if ( !txParams.to ) {