From 5e5e6d3cfbb159a4981d8197bca5e10876f38486 Mon Sep 17 00:00:00 2001 From: Phil Bain Date: Thu, 21 Nov 2019 15:32:45 +0100 Subject: [PATCH 1/2] explicitly add value property to tx options --- packages/dai/src/eth/TransactionManager.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/dai/src/eth/TransactionManager.js b/packages/dai/src/eth/TransactionManager.js index 9473662de..4e34e3ff6 100644 --- a/packages/dai/src/eth/TransactionManager.js +++ b/packages/dai/src/eth/TransactionManager.js @@ -47,6 +47,11 @@ export default class TransactionManager extends PublicService { businessObject = options.businessObject; delete options.businessObject; } + + // some subproviders require a value key included with the Tx + if (!options.value) { + options.value = 0; + } } else { options = {}; } From 24742dd092d414a99abb02bb85af05cff5702f9e Mon Sep 17 00:00:00 2001 From: Lawrence Wang Date: Thu, 21 Nov 2019 12:35:49 -0800 Subject: [PATCH 2/2] Update packages/dai/src/eth/TransactionManager.js --- packages/dai/src/eth/TransactionManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dai/src/eth/TransactionManager.js b/packages/dai/src/eth/TransactionManager.js index 4e34e3ff6..a824fc903 100644 --- a/packages/dai/src/eth/TransactionManager.js +++ b/packages/dai/src/eth/TransactionManager.js @@ -49,7 +49,7 @@ export default class TransactionManager extends PublicService { } // some subproviders require a value key included with the Tx - if (!options.value) { + if (!has(options, 'value')) { options.value = 0; } } else {