merge master into jr-use-badge-reg
This commit is contained in:
@@ -92,7 +92,7 @@ function findImports (path) {
|
||||
return { error: 'File not found' };
|
||||
}
|
||||
|
||||
function compile (data) {
|
||||
function compile (data, optimized = 1) {
|
||||
const { sourcecode, build } = data;
|
||||
const { longVersion } = build;
|
||||
|
||||
@@ -109,7 +109,7 @@ function compile (data) {
|
||||
'': sourcecode
|
||||
};
|
||||
|
||||
const compiled = compiler.compile({ sources: input }, 0, findImports);
|
||||
const compiled = compiler.compile({ sources: input }, optimized, findImports);
|
||||
|
||||
self.lastCompile = {
|
||||
version: longVersion, result: compiled,
|
||||
|
||||
@@ -58,7 +58,7 @@ function modifyOperation (method, address, owner, operation) {
|
||||
contract.instance[method]
|
||||
.estimateGas(options, values)
|
||||
.then((gas) => {
|
||||
options.gas = gas;
|
||||
options.gas = gas.mul(1.2);
|
||||
return contract.instance[method].postTransaction(options, values);
|
||||
})
|
||||
.then((requestId) => {
|
||||
|
||||
Reference in New Issue
Block a user