(options)
| 27 | }; |
| 28 | |
| 29 | function getFinalOptions(options) { |
| 30 | if (typeof options != "object") { |
| 31 | options = {} |
| 32 | } |
| 33 | const defaultOptions = { |
| 34 | from: Issuer, |
| 35 | gasPrice: defaultGasPrice, |
| 36 | value: undefined, |
| 37 | factor: 1.2, |
| 38 | minNonce: 0 |
| 39 | } |
| 40 | return Object.assign(defaultOptions, options) |
| 41 | }; |
| 42 | |
| 43 | async function getGasLimit(options, action) { |
| 44 | let block = await web3.eth.getBlock('latest'); |