Skip to content

EthereumAbi.encode not working properly #3555

Closed Answered by satoshiotomakan
MhAhmadAli asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @MhAhmadAli, I checked the example you sent me, and the values at screenshot doesn't match the result you've sent.
First of all, the 0xa5f7c148 prefix can be if the function has the following type: transfer(address, int). But if the function type is transfer(address, uint), the prefix will be 0xa9059cbb as you expect.
Secondly, the amount on the screenshot should be 100000000 to get 0x05f5e100, but it's 1000 times less.

Please make sure if you use the API in a correct way. We have multiple examples in Kotlin here: link

Last, consider using the new API: link

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@MhAhmadAli
Comment options

Answer selected by MhAhmadAli
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
2 participants
Converted from issue

This discussion was converted from issue #3554 on November 14, 2023 15:51.