eth-contract-api icon indicating copy to clipboard operation
eth-contract-api copied to clipboard

Bug: proxy toString() produces NPE

Open kabl opened this issue 7 years ago • 0 comments

If you call the "toString()" method of your proxy this will produce an NPE.

proxy = ethereum.createContractProxy(...)
proxy.toString(); // <- NPE

This behaviour is also in other Object methods. Like "hashCode()" and "equals(...)".

The problem is that the method "SmartContract.callConstFunction(...)" tries to map the method name "toString" to a method in the Smart Contract Interface. Which does not exists.

kabl avatar Apr 21 '17 07:04 kabl