adridadou / eth-contract-api

EthereumJ native API or how to call contracts easily and with type safety
http://www.davidroon.com/ethcontractapi/
Apache License 2.0
60 stars 34 forks source link

fix simple copy and paste error #100

Closed UrsZeidler closed 7 years ago

UrsZeidler commented 7 years ago

Just stumbled across this.

UrsZeidler commented 7 years ago

Found the invalid sender error. There is also an issue with the estimateGas method which I fixed by changing EthAddress. But it is more a shot in the dark, that's why I didn't include this in these pull request.

public String withLeading0x() {
    if(isEmpty())
        return "0x0000000000000000000000000000000000000000";
    return "0x" + this.toString();
}

This doesn't fix the event issue.