This repository has been archived by the owner on Nov 6, 2020. It is now read-only.
Serpent/Solidity function naming mismatch - ABI name contains ()'s #4122
Labels
F2-bug 🐞
The client fails to follow expected behavior.
TL;DR ---- Allow function names with no arguments to have "()" after the name in the ABI
After much grief I figured out why a simple Serpent function that has no params and just
returns a string wouldn't run correctly in Parity.
Here is the ABI Serpent emits...
[{"constant": false, "type": "function", "name": "get_confirmation()", "outputs": [{"type": "bytes", "name": "out"}], "inputs": []}]
I noticed web UI queries on watched contracts keep returning 0x0 (instead of correct return value/string) unless you remove the parens from the function name. In other words, this nonstandard hack is needed for Parity.....
[{"constant": false, "type": "function", "name": "get_confirmation", "outputs": [{"type": "bytes", "name": "out"}], "inputs": []}]
Hope that helps
The text was updated successfully, but these errors were encountered: