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

InvalidProtocolBufferException ABI #122

Open
d1ksim opened this issue Apr 9, 2024 · 1 comment
Open

InvalidProtocolBufferException ABI #122

d1ksim opened this issue Apr 9, 2024 · 1 comment

Comments

@d1ksim
Copy link

d1ksim commented Apr 9, 2024

Hello, friends.

When using trident java and publishing a smart contract, I get the error: com.google.protobuf.InvalidProtocolBufferException: Expect message object but got

I don't understand what the problem is, I follow the instructions strictly.

https://gist.github.com/d1ksim/1a915d9c13a1efefe92e2059c3d06465

@endiaoekoe
Copy link
Contributor

com.google.protobuf.InvalidProtocolBufferException: Expect message object but got

hi, @d1ksim
From the error msg and codes you provide above, it seems like there is a mismatch between the expected protocol buffer message format and the actual data being passed.
Most likely, there is something wrong when generating the able string.
When setting the ABI for the contract, make sure you are passing it as a ByteString(you use String in your code) or in a format that the trident-java library expects.
maybe you can try and see if it works fine.

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