MCPcopy Create free account
hub / github.com/PolymathNetwork/polymath-core / getFinalOptions

Function getFinalOptions

CLI/commands/common/common_functions.js:29–41  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

27};
28
29function 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
43async function getGasLimit(options, action) {
44 let block = await web3.eth.getBlock('latest');

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected