This is an automated archive.
The original was posted on /r/ethereum by /u/Omni-Fitness on 2023-11-08 05:37:22+00:00.
In Solidity, there is the abi.encode()
function which you input arbitrary values, and it turns them into one bytes[]
result, e.g. bytes[] result = abi.encode(name, owner, noce)
It seems there is a lot of support for this in TypeScript, such as Viem’s encodeAbiParameters but I cannot seem to find an inquivennt in Go.
Is there a function in Geth to do this, or some other library to use? Surely I cannot be the first person that has wanted to do abi.encode()
in Go haha.
You must log in or register to comment.