mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-19 17:14:40 +00:00
bugfix (@embark/stack/embarkjs): set default gas so it's an optional parameter for onDeploy directives in the contracts config
This commit is contained in:
parent
aecb99d428
commit
af51e2d793
@ -22,7 +22,7 @@ module.exports = {
|
|||||||
SimpleStorage: {
|
SimpleStorage: {
|
||||||
fromIndex: 0,
|
fromIndex: 0,
|
||||||
args: [100],
|
args: [100],
|
||||||
onDeploy: ["SimpleStorage.methods.setRegistar('embark.eth').send({from: web3.eth.defaultAccount})"]
|
onDeploy: ["SimpleStorage.methods.setRegistar('embark.eth').send()"]
|
||||||
},
|
},
|
||||||
SimpleStorageTest: {
|
SimpleStorageTest: {
|
||||||
//file: "./some_folder/test_contract.sol",
|
//file: "./some_folder/test_contract.sol",
|
||||||
|
@ -1,2 +1,5 @@
|
|||||||
<%- className %>Config = <%- JSON.stringify(contract) %>;
|
<%- className %>Config = <%- JSON.stringify(contract) %>;
|
||||||
<%- className %> = new EmbarkJS.Blockchain.Contract(<%- className %>Config);
|
<%- className %> = new EmbarkJS.Blockchain.Contract(<%- className %>Config);
|
||||||
|
if (!<%- className %>.options.gas) {
|
||||||
|
<%- className %>.options.gas = 800000;
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user