From a80a8a8ced161f8dacf4128c63ecf718f7d0b481 Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Sun, 5 Aug 2018 18:35:00 -0400 Subject: [PATCH] Fixed miscalculating estimated fees for payable functions. --- src.ts/providers/base-provider.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src.ts/providers/base-provider.ts b/src.ts/providers/base-provider.ts index 5cb86f4a3..44e81ec3c 100644 --- a/src.ts/providers/base-provider.ts +++ b/src.ts/providers/base-provider.ts @@ -814,7 +814,9 @@ export class BaseProvider extends Provider { let tx: TransactionRequest = { to: transaction.to, from: transaction.from, - data: transaction.data + data: transaction.data, + gasPrice: transaction.gasPrice, + value: transaction.value }; return this.ready.then(() => {