Add more transactions to Geth on init. Skip tests that are failing.

This commit is contained in:
Alex Browne
2018-05-23 18:13:18 -07:00
parent 5b999c2f7d
commit 00bf957b53
16 changed files with 771 additions and 645 deletions

View File

@@ -79,8 +79,13 @@ export class BaseContract {
// Awaiting https://github.com/Microsoft/TypeScript/pull/13288 to be merged
} as any;
if (_.isUndefined(txDataWithDefaults.gas) && !_.isUndefined(estimateGasAsync)) {
// TODO(albrow): Move this code into a subprovider which we only
// use for Geth.
const estimatedGas = await estimateGasAsync(txData);
txDataWithDefaults.gas = estimatedGas;
// console.log(`original estimate: ${estimatedGas}`);
const buffered = Math.ceil(estimatedGas * 1.1);
// console.log(`buffered estimate: ${buffered}`);
txDataWithDefaults.gas = buffered;
}
return txDataWithDefaults;
}