Skip to main content
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
Results tagged with
Search options answers only not deleted user 5549

For questions regarding the installation or use of EthereumJ, a Java library that implements the Ethereum protocol.

0 votes

Why am I getting TypeError: Member "balanceOf" not found or not visible after argument?

There is a lot going wrong here. The short answer is tokenContract is a string because of this: string public tokenContract; There is no reason to think a string should have a method balanceOf(). …
Rob Hitchens's user avatar
  • 55.6k
29 votes

'authentication needed: password or unlock' Error when trying to call smart contract method ...

First, make sure you have an account. web3.personal.listAccounts If you get [] ... web3.personal.newAccount() Try again. Then ... web3.personal.unlockAccount(web3.personal.listAccounts[0], …
Rob Hitchens's user avatar
  • 55.6k
4 votes
Accepted

How to find out the value using call() method in truffle and testrpc?

You've got the right idea with checking balances for one address at a time and using promises. The square brackets are weird here. Looks like you're adapting array style but this is a function call …
Rob Hitchens's user avatar
  • 55.6k
1 vote

remove contract on ethereum blockchain using web3

What @manuhalo said, plus, you might want to consider pausing the contract with a run/stop method and modifier instead of selfDestruct() because the latter creates a sink hole. THe former can throw on …
Rob Hitchens's user avatar
  • 55.6k
0 votes
Accepted

Implementing Events in Solidity (Remix)

You should define the event log outside the function with/after your state variables. Then emit events as transactions happen. contract Thing { event LogSomethingHappened(address sender, uint amo …
Rob Hitchens's user avatar
  • 55.6k
1 vote
Accepted

How to resolve this error in solidity “The constructor should be payable if you send value.”?

The error message is misleading. You can safely disregard it since you aren't calling the constructor or sending funds. It's a lot of code to wade through so this won't be very specific. You say t …
Rob Hitchens's user avatar
  • 55.6k
1 vote
Accepted

Nested Mapping not returning correct results

I played around with your code and came up with this: pragma solidity ^0.4.11; contract SampleContract { struct ChildStruct { bool isPresent; bytes32 name; } struct ParentStruct { …
Rob Hitchens's user avatar
  • 55.6k