-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Field override is failing #20
Comments
It doesn't support double-pointer conversion. We could add this, but I'm wondering why you need double-pointer in the first place? |
Double pointer conversion is not hard to add if you really do need it though. First you would have to allow it in this function here: Line 128 in f9840df
Then it needs to be handled in Line 256 in f9840df
The output code for
|
The reason I want double pointer conversion is the field is a double pointer. e.g. |
But it's no hurry at all! I can even make the change in gencodec tool by myself. It's not decided yet whether the whole conversion is needed or not. Good to know how to support it. |
What I find strange about this, is that usually it is enough to have a single pointer in this case, and Same with slice/map values. Since they can be |
The issue occurs when I try to replace
**big.Int
with**hexutil.Big
.Error message is
/usr/local/go/bin/go generate -run go run github.com/fjl/gencodec -type OverrideAccount -field-override overrideMarshaling -out gen_override_json.go -: invalid field override: type **github.com/ethereum/go-ethereum/common/hexutil.Big is not convertible to **math/big.Int exit status 1 overrides.go:28: running "go": exit status 1
The text was updated successfully, but these errors were encountered: