How to solve the error when deploying a smart contract in Ethereum?

Multi tool use
When trying to compile the smart contract with solc-js I was getting the error
Krishna:Voting krishnakankipati$ node deploy.js
Compiling the contract
assert.js:350
throw err; ^
AssertionError [ERR_ASSERTION]: Invalid callback specified.
let compilerInput = {
'Voter': fs.readFileSync('Voter.sol', 'utf8')
};
console.log('Compiling the contract')
// Compile and optimize the contract
let compiledContract = solc.compile(compilerInput, 1);
// Get compiled contract
let contract = compiledContract.contracts['Voter:Voter'] // Voter contract from Voter file.
// Save contract's ABI
let abi = contract.interface;
fs.writeFileSync('abi.json', abi);
node.js npm node-modules ethereum solidity
add a comment |
When trying to compile the smart contract with solc-js I was getting the error
Krishna:Voting krishnakankipati$ node deploy.js
Compiling the contract
assert.js:350
throw err; ^
AssertionError [ERR_ASSERTION]: Invalid callback specified.
let compilerInput = {
'Voter': fs.readFileSync('Voter.sol', 'utf8')
};
console.log('Compiling the contract')
// Compile and optimize the contract
let compiledContract = solc.compile(compilerInput, 1);
// Get compiled contract
let contract = compiledContract.contracts['Voter:Voter'] // Voter contract from Voter file.
// Save contract's ABI
let abi = contract.interface;
fs.writeFileSync('abi.json', abi);
node.js npm node-modules ethereum solidity
Could you post the code you're using to deploy your smart contract so I could assist?
– Ben Beck
Dec 28 '18 at 4:21
@BenBeck. Sure Sir.
– Krishna0727
Dec 28 '18 at 9:01
@BenBeck. This is my GitHub link please take a look at it Sir. github.com/Krishna2709/Voting-SmartContract/blob/master/…
– Krishna0727
Dec 28 '18 at 9:25
add a comment |
When trying to compile the smart contract with solc-js I was getting the error
Krishna:Voting krishnakankipati$ node deploy.js
Compiling the contract
assert.js:350
throw err; ^
AssertionError [ERR_ASSERTION]: Invalid callback specified.
let compilerInput = {
'Voter': fs.readFileSync('Voter.sol', 'utf8')
};
console.log('Compiling the contract')
// Compile and optimize the contract
let compiledContract = solc.compile(compilerInput, 1);
// Get compiled contract
let contract = compiledContract.contracts['Voter:Voter'] // Voter contract from Voter file.
// Save contract's ABI
let abi = contract.interface;
fs.writeFileSync('abi.json', abi);
node.js npm node-modules ethereum solidity
When trying to compile the smart contract with solc-js I was getting the error
Krishna:Voting krishnakankipati$ node deploy.js
Compiling the contract
assert.js:350
throw err; ^
AssertionError [ERR_ASSERTION]: Invalid callback specified.
let compilerInput = {
'Voter': fs.readFileSync('Voter.sol', 'utf8')
};
console.log('Compiling the contract')
// Compile and optimize the contract
let compiledContract = solc.compile(compilerInput, 1);
// Get compiled contract
let contract = compiledContract.contracts['Voter:Voter'] // Voter contract from Voter file.
// Save contract's ABI
let abi = contract.interface;
fs.writeFileSync('abi.json', abi);
node.js npm node-modules ethereum solidity
node.js npm node-modules ethereum solidity
edited Dec 28 '18 at 19:03


Ben Beck
1,7251615
1,7251615
asked Dec 28 '18 at 3:09


Krishna0727
36
36
Could you post the code you're using to deploy your smart contract so I could assist?
– Ben Beck
Dec 28 '18 at 4:21
@BenBeck. Sure Sir.
– Krishna0727
Dec 28 '18 at 9:01
@BenBeck. This is my GitHub link please take a look at it Sir. github.com/Krishna2709/Voting-SmartContract/blob/master/…
– Krishna0727
Dec 28 '18 at 9:25
add a comment |
Could you post the code you're using to deploy your smart contract so I could assist?
– Ben Beck
Dec 28 '18 at 4:21
@BenBeck. Sure Sir.
– Krishna0727
Dec 28 '18 at 9:01
@BenBeck. This is my GitHub link please take a look at it Sir. github.com/Krishna2709/Voting-SmartContract/blob/master/…
– Krishna0727
Dec 28 '18 at 9:25
Could you post the code you're using to deploy your smart contract so I could assist?
– Ben Beck
Dec 28 '18 at 4:21
Could you post the code you're using to deploy your smart contract so I could assist?
– Ben Beck
Dec 28 '18 at 4:21
@BenBeck. Sure Sir.
– Krishna0727
Dec 28 '18 at 9:01
@BenBeck. Sure Sir.
– Krishna0727
Dec 28 '18 at 9:01
@BenBeck. This is my GitHub link please take a look at it Sir. github.com/Krishna2709/Voting-SmartContract/blob/master/…
– Krishna0727
Dec 28 '18 at 9:25
@BenBeck. This is my GitHub link please take a look at it Sir. github.com/Krishna2709/Voting-SmartContract/blob/master/…
– Krishna0727
Dec 28 '18 at 9:25
add a comment |
2 Answers
2
active
oldest
votes
Please be sure to read the solc docs for solc v0.5.0+ to ensure you're adjusting for the changes to the Solidity compiler.
Something like this should be compatible with the latest version of solc:
// Note: You should be defining your contract sources as objects now.
// Note: You must also provide the compiler output selection as well.
const compilerInput = {
language: "Solidity",
sources: {
'Voter': { content: fs.readFileSync('Voter.sol', 'utf8') }
},
settings: {
outputSelection: {
"*": {
"*": [ "abi", "evm.bytecode" ]
}
}
}
};
console.log('Compiling the contract')
// Note: You have to pass the input in with JSON.stringify now.
const compiledContract = JSON.parse(solc.compile(JSON.stringify(compilerInput)));
if(compiledContract.errors) {
compiledContract.errors.forEach(err => console.log(err.formattedMessage));
}
// Note: This changed slightly since I'm using JSON.parse above.
const contract = compiledContract.contracts['Voter'].Voter; // Voter contract from Voter file.
// Note: This is now called 'abi' and not 'interface'
const abi = contract.abi;
fs.writeFileSync('abi.json', JSON.stringify(abi, null, 2));
You'll also need to update your deployContract
function to be in sync with solc v0.5.0+
async function deployContract(web3, contract, sender) {
let Voter = new web3.eth.Contract(JSON.parse(JSON.stringify(abi)));
let bytecode = '0x' + contract.evm.bytecode.object;
let gasEstimate = await web3.eth.estimateGas({data: bytecode});
// The rest should work fine...
}
Thank you, Sir.
– Krishna0727
Dec 28 '18 at 15:25
It was working when I have installed again...using the command > npm install solc@0.4.25 --save
– Krishna0727
Dec 28 '18 at 15:26
@Krishna0727, right, the code you had works with solc <= 0.4.29. The code I've provided works with solc >= 0.5.0 which is what you initially had declared in yourpackage.json
.
– Ben Beck
Dec 28 '18 at 15:28
SyntaxError: Unexpected token o in JSON at position 1 > const compiledContract = JSON.parse(solc.compile(JSON.stringify(compilerInput)));
– Krishna0727
Dec 28 '18 at 15:30
@Krishna0727, could you post a new script to your GitHub where you attempt use the above code?
– Ben Beck
Dec 28 '18 at 15:50
|
show 7 more comments
You aren't using solc-js correctly. You need to stringify the input, and you're passing a 1 instead of an import callback. Please read the docs before posting questions: https://github.com/ethereum/solc-js
Consider using etherjs, much better documentation and more robust than web3.
solcjs isn't working when compiling the smart contract. And even the solidity docs says it isn't compatible with Geth.
– Krishna0727
Dec 28 '18 at 14:19
Yes, because you're not using it correctly. Put the code in Remix and it will compile fine. What isn't compatible with geth?
– DAnsermino
Dec 31 '18 at 6:32
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53953260%2fhow-to-solve-the-error-when-deploying-a-smart-contract-in-ethereum%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Please be sure to read the solc docs for solc v0.5.0+ to ensure you're adjusting for the changes to the Solidity compiler.
Something like this should be compatible with the latest version of solc:
// Note: You should be defining your contract sources as objects now.
// Note: You must also provide the compiler output selection as well.
const compilerInput = {
language: "Solidity",
sources: {
'Voter': { content: fs.readFileSync('Voter.sol', 'utf8') }
},
settings: {
outputSelection: {
"*": {
"*": [ "abi", "evm.bytecode" ]
}
}
}
};
console.log('Compiling the contract')
// Note: You have to pass the input in with JSON.stringify now.
const compiledContract = JSON.parse(solc.compile(JSON.stringify(compilerInput)));
if(compiledContract.errors) {
compiledContract.errors.forEach(err => console.log(err.formattedMessage));
}
// Note: This changed slightly since I'm using JSON.parse above.
const contract = compiledContract.contracts['Voter'].Voter; // Voter contract from Voter file.
// Note: This is now called 'abi' and not 'interface'
const abi = contract.abi;
fs.writeFileSync('abi.json', JSON.stringify(abi, null, 2));
You'll also need to update your deployContract
function to be in sync with solc v0.5.0+
async function deployContract(web3, contract, sender) {
let Voter = new web3.eth.Contract(JSON.parse(JSON.stringify(abi)));
let bytecode = '0x' + contract.evm.bytecode.object;
let gasEstimate = await web3.eth.estimateGas({data: bytecode});
// The rest should work fine...
}
Thank you, Sir.
– Krishna0727
Dec 28 '18 at 15:25
It was working when I have installed again...using the command > npm install solc@0.4.25 --save
– Krishna0727
Dec 28 '18 at 15:26
@Krishna0727, right, the code you had works with solc <= 0.4.29. The code I've provided works with solc >= 0.5.0 which is what you initially had declared in yourpackage.json
.
– Ben Beck
Dec 28 '18 at 15:28
SyntaxError: Unexpected token o in JSON at position 1 > const compiledContract = JSON.parse(solc.compile(JSON.stringify(compilerInput)));
– Krishna0727
Dec 28 '18 at 15:30
@Krishna0727, could you post a new script to your GitHub where you attempt use the above code?
– Ben Beck
Dec 28 '18 at 15:50
|
show 7 more comments
Please be sure to read the solc docs for solc v0.5.0+ to ensure you're adjusting for the changes to the Solidity compiler.
Something like this should be compatible with the latest version of solc:
// Note: You should be defining your contract sources as objects now.
// Note: You must also provide the compiler output selection as well.
const compilerInput = {
language: "Solidity",
sources: {
'Voter': { content: fs.readFileSync('Voter.sol', 'utf8') }
},
settings: {
outputSelection: {
"*": {
"*": [ "abi", "evm.bytecode" ]
}
}
}
};
console.log('Compiling the contract')
// Note: You have to pass the input in with JSON.stringify now.
const compiledContract = JSON.parse(solc.compile(JSON.stringify(compilerInput)));
if(compiledContract.errors) {
compiledContract.errors.forEach(err => console.log(err.formattedMessage));
}
// Note: This changed slightly since I'm using JSON.parse above.
const contract = compiledContract.contracts['Voter'].Voter; // Voter contract from Voter file.
// Note: This is now called 'abi' and not 'interface'
const abi = contract.abi;
fs.writeFileSync('abi.json', JSON.stringify(abi, null, 2));
You'll also need to update your deployContract
function to be in sync with solc v0.5.0+
async function deployContract(web3, contract, sender) {
let Voter = new web3.eth.Contract(JSON.parse(JSON.stringify(abi)));
let bytecode = '0x' + contract.evm.bytecode.object;
let gasEstimate = await web3.eth.estimateGas({data: bytecode});
// The rest should work fine...
}
Thank you, Sir.
– Krishna0727
Dec 28 '18 at 15:25
It was working when I have installed again...using the command > npm install solc@0.4.25 --save
– Krishna0727
Dec 28 '18 at 15:26
@Krishna0727, right, the code you had works with solc <= 0.4.29. The code I've provided works with solc >= 0.5.0 which is what you initially had declared in yourpackage.json
.
– Ben Beck
Dec 28 '18 at 15:28
SyntaxError: Unexpected token o in JSON at position 1 > const compiledContract = JSON.parse(solc.compile(JSON.stringify(compilerInput)));
– Krishna0727
Dec 28 '18 at 15:30
@Krishna0727, could you post a new script to your GitHub where you attempt use the above code?
– Ben Beck
Dec 28 '18 at 15:50
|
show 7 more comments
Please be sure to read the solc docs for solc v0.5.0+ to ensure you're adjusting for the changes to the Solidity compiler.
Something like this should be compatible with the latest version of solc:
// Note: You should be defining your contract sources as objects now.
// Note: You must also provide the compiler output selection as well.
const compilerInput = {
language: "Solidity",
sources: {
'Voter': { content: fs.readFileSync('Voter.sol', 'utf8') }
},
settings: {
outputSelection: {
"*": {
"*": [ "abi", "evm.bytecode" ]
}
}
}
};
console.log('Compiling the contract')
// Note: You have to pass the input in with JSON.stringify now.
const compiledContract = JSON.parse(solc.compile(JSON.stringify(compilerInput)));
if(compiledContract.errors) {
compiledContract.errors.forEach(err => console.log(err.formattedMessage));
}
// Note: This changed slightly since I'm using JSON.parse above.
const contract = compiledContract.contracts['Voter'].Voter; // Voter contract from Voter file.
// Note: This is now called 'abi' and not 'interface'
const abi = contract.abi;
fs.writeFileSync('abi.json', JSON.stringify(abi, null, 2));
You'll also need to update your deployContract
function to be in sync with solc v0.5.0+
async function deployContract(web3, contract, sender) {
let Voter = new web3.eth.Contract(JSON.parse(JSON.stringify(abi)));
let bytecode = '0x' + contract.evm.bytecode.object;
let gasEstimate = await web3.eth.estimateGas({data: bytecode});
// The rest should work fine...
}
Please be sure to read the solc docs for solc v0.5.0+ to ensure you're adjusting for the changes to the Solidity compiler.
Something like this should be compatible with the latest version of solc:
// Note: You should be defining your contract sources as objects now.
// Note: You must also provide the compiler output selection as well.
const compilerInput = {
language: "Solidity",
sources: {
'Voter': { content: fs.readFileSync('Voter.sol', 'utf8') }
},
settings: {
outputSelection: {
"*": {
"*": [ "abi", "evm.bytecode" ]
}
}
}
};
console.log('Compiling the contract')
// Note: You have to pass the input in with JSON.stringify now.
const compiledContract = JSON.parse(solc.compile(JSON.stringify(compilerInput)));
if(compiledContract.errors) {
compiledContract.errors.forEach(err => console.log(err.formattedMessage));
}
// Note: This changed slightly since I'm using JSON.parse above.
const contract = compiledContract.contracts['Voter'].Voter; // Voter contract from Voter file.
// Note: This is now called 'abi' and not 'interface'
const abi = contract.abi;
fs.writeFileSync('abi.json', JSON.stringify(abi, null, 2));
You'll also need to update your deployContract
function to be in sync with solc v0.5.0+
async function deployContract(web3, contract, sender) {
let Voter = new web3.eth.Contract(JSON.parse(JSON.stringify(abi)));
let bytecode = '0x' + contract.evm.bytecode.object;
let gasEstimate = await web3.eth.estimateGas({data: bytecode});
// The rest should work fine...
}
edited Dec 28 '18 at 18:03
answered Dec 28 '18 at 14:58


Ben Beck
1,7251615
1,7251615
Thank you, Sir.
– Krishna0727
Dec 28 '18 at 15:25
It was working when I have installed again...using the command > npm install solc@0.4.25 --save
– Krishna0727
Dec 28 '18 at 15:26
@Krishna0727, right, the code you had works with solc <= 0.4.29. The code I've provided works with solc >= 0.5.0 which is what you initially had declared in yourpackage.json
.
– Ben Beck
Dec 28 '18 at 15:28
SyntaxError: Unexpected token o in JSON at position 1 > const compiledContract = JSON.parse(solc.compile(JSON.stringify(compilerInput)));
– Krishna0727
Dec 28 '18 at 15:30
@Krishna0727, could you post a new script to your GitHub where you attempt use the above code?
– Ben Beck
Dec 28 '18 at 15:50
|
show 7 more comments
Thank you, Sir.
– Krishna0727
Dec 28 '18 at 15:25
It was working when I have installed again...using the command > npm install solc@0.4.25 --save
– Krishna0727
Dec 28 '18 at 15:26
@Krishna0727, right, the code you had works with solc <= 0.4.29. The code I've provided works with solc >= 0.5.0 which is what you initially had declared in yourpackage.json
.
– Ben Beck
Dec 28 '18 at 15:28
SyntaxError: Unexpected token o in JSON at position 1 > const compiledContract = JSON.parse(solc.compile(JSON.stringify(compilerInput)));
– Krishna0727
Dec 28 '18 at 15:30
@Krishna0727, could you post a new script to your GitHub where you attempt use the above code?
– Ben Beck
Dec 28 '18 at 15:50
Thank you, Sir.
– Krishna0727
Dec 28 '18 at 15:25
Thank you, Sir.
– Krishna0727
Dec 28 '18 at 15:25
It was working when I have installed again...using the command > npm install solc@0.4.25 --save
– Krishna0727
Dec 28 '18 at 15:26
It was working when I have installed again...using the command > npm install solc@0.4.25 --save
– Krishna0727
Dec 28 '18 at 15:26
@Krishna0727, right, the code you had works with solc <= 0.4.29. The code I've provided works with solc >= 0.5.0 which is what you initially had declared in your
package.json
.– Ben Beck
Dec 28 '18 at 15:28
@Krishna0727, right, the code you had works with solc <= 0.4.29. The code I've provided works with solc >= 0.5.0 which is what you initially had declared in your
package.json
.– Ben Beck
Dec 28 '18 at 15:28
SyntaxError: Unexpected token o in JSON at position 1 > const compiledContract = JSON.parse(solc.compile(JSON.stringify(compilerInput)));
– Krishna0727
Dec 28 '18 at 15:30
SyntaxError: Unexpected token o in JSON at position 1 > const compiledContract = JSON.parse(solc.compile(JSON.stringify(compilerInput)));
– Krishna0727
Dec 28 '18 at 15:30
@Krishna0727, could you post a new script to your GitHub where you attempt use the above code?
– Ben Beck
Dec 28 '18 at 15:50
@Krishna0727, could you post a new script to your GitHub where you attempt use the above code?
– Ben Beck
Dec 28 '18 at 15:50
|
show 7 more comments
You aren't using solc-js correctly. You need to stringify the input, and you're passing a 1 instead of an import callback. Please read the docs before posting questions: https://github.com/ethereum/solc-js
Consider using etherjs, much better documentation and more robust than web3.
solcjs isn't working when compiling the smart contract. And even the solidity docs says it isn't compatible with Geth.
– Krishna0727
Dec 28 '18 at 14:19
Yes, because you're not using it correctly. Put the code in Remix and it will compile fine. What isn't compatible with geth?
– DAnsermino
Dec 31 '18 at 6:32
add a comment |
You aren't using solc-js correctly. You need to stringify the input, and you're passing a 1 instead of an import callback. Please read the docs before posting questions: https://github.com/ethereum/solc-js
Consider using etherjs, much better documentation and more robust than web3.
solcjs isn't working when compiling the smart contract. And even the solidity docs says it isn't compatible with Geth.
– Krishna0727
Dec 28 '18 at 14:19
Yes, because you're not using it correctly. Put the code in Remix and it will compile fine. What isn't compatible with geth?
– DAnsermino
Dec 31 '18 at 6:32
add a comment |
You aren't using solc-js correctly. You need to stringify the input, and you're passing a 1 instead of an import callback. Please read the docs before posting questions: https://github.com/ethereum/solc-js
Consider using etherjs, much better documentation and more robust than web3.
You aren't using solc-js correctly. You need to stringify the input, and you're passing a 1 instead of an import callback. Please read the docs before posting questions: https://github.com/ethereum/solc-js
Consider using etherjs, much better documentation and more robust than web3.
answered Dec 28 '18 at 13:54
DAnsermino
11319
11319
solcjs isn't working when compiling the smart contract. And even the solidity docs says it isn't compatible with Geth.
– Krishna0727
Dec 28 '18 at 14:19
Yes, because you're not using it correctly. Put the code in Remix and it will compile fine. What isn't compatible with geth?
– DAnsermino
Dec 31 '18 at 6:32
add a comment |
solcjs isn't working when compiling the smart contract. And even the solidity docs says it isn't compatible with Geth.
– Krishna0727
Dec 28 '18 at 14:19
Yes, because you're not using it correctly. Put the code in Remix and it will compile fine. What isn't compatible with geth?
– DAnsermino
Dec 31 '18 at 6:32
solcjs isn't working when compiling the smart contract. And even the solidity docs says it isn't compatible with Geth.
– Krishna0727
Dec 28 '18 at 14:19
solcjs isn't working when compiling the smart contract. And even the solidity docs says it isn't compatible with Geth.
– Krishna0727
Dec 28 '18 at 14:19
Yes, because you're not using it correctly. Put the code in Remix and it will compile fine. What isn't compatible with geth?
– DAnsermino
Dec 31 '18 at 6:32
Yes, because you're not using it correctly. Put the code in Remix and it will compile fine. What isn't compatible with geth?
– DAnsermino
Dec 31 '18 at 6:32
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53953260%2fhow-to-solve-the-error-when-deploying-a-smart-contract-in-ethereum%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Qf 1Sh,MO SCyf0DJN3,eW2mocS
Could you post the code you're using to deploy your smart contract so I could assist?
– Ben Beck
Dec 28 '18 at 4:21
@BenBeck. Sure Sir.
– Krishna0727
Dec 28 '18 at 9:01
@BenBeck. This is my GitHub link please take a look at it Sir. github.com/Krishna2709/Voting-SmartContract/blob/master/…
– Krishna0727
Dec 28 '18 at 9:25