-
Notifications
You must be signed in to change notification settings - Fork 20.4k
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
Abi packed address is different from js/solidity #27348
Comments
In Javascript, it works fine. Also in solidity.
I see |
I think there's a confusion of terms here. Go-ethereum pack/unpack can be used to pack/unpack ABI-encoded hexdata according to the ABI-specification. The docs at https://docs.soliditylang.org/en/latest/abi-spec.html are a bit ambiguous, because it does say that
They pad each parameter to the full 32 bytes. |
I'm looking for alternative method of solidity |
I've found an issue indicates It's not a bug. And I will use more standardized methods. :-) |
System information
Geth version:
-
CL client & version: github.com/ethereum/go-ethereum v1.11.6
OS & Version: OSX
Commit hash :
-
Expected behaviour
Pack
address
using abi.Arguments likeabi.encodePacked
in solidity. Bytes length of packedaddress
should be 20.For example:
Actual behaviour
Steps to reproduce the behaviour
Here is the code reproducing the behaviour.
Backtrace
When submitting logs: please submit them as text and not screenshots.
The text was updated successfully, but these errors were encountered: