Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions regarding the implementation and use of the Truffle development and testing environment.
2
votes
4
answers
1k
views
Contract Method not returning value
I can call getSGB() method from Truffle console and it returns value successfully. … I used the following mechanism in Truffle console:
var contract = SGBFactory.deployed();
contract.getSGB.call(1, {from: "0x85ded4eae096d15de9bee720a6e91eb28603a7e6"}, function(err, res) {
console.log …
1
vote
Contract Method not returning value
The solution was :
sgbAdderContract.getSGB.call(0,{from : coinbase_account}).**then**(function(result){
//do somethiing
}).catch(function(e){
// error
});