Skip to content
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

not a valid name why? #69

Open
fastener opened this issue Sep 13, 2021 · 2 comments
Open

not a valid name why? #69

fastener opened this issue Sep 13, 2021 · 2 comments

Comments

@fastener
Copy link

https://bscscan.com/address/0xca143ce32fe78f1f7019d7d551a6402fc5350c73#code

I use web3j cli to generate the Java proxy class, but the code of the contract pancakefactory fails to generate all the time, prompting not a valid name. Why

@joelcho
Copy link

joelcho commented Jan 4, 2022

The name of the 4th parameter of the PairCreate event is empty.

{
    "anonymous":false,
    "inputs":[
        {
            "indexed":true,
            "internalType":"address",
            "name":"token0",
            "type":"address"
        },
        {
            "indexed":true,
            "internalType":"address",
            "name":"token1",
            "type":"address"
        },
        {
            "indexed":false,
            "internalType":"address",
            "name":"pair",
            "type":"address"
        },
        {
            "indexed":false,
            "internalType":"uint256",
            "name":"", <-------
            "type":"uint256"
        }
    ],
    "name":"PairCreated",
    "type":"event"
}

@joelcho
Copy link

joelcho commented Jan 4, 2022

I guess the name of the parameter is only used to generate the Event Class. Specifying a name you want may work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants