Skip to content
Discussion options

You must be logged in to vote

In that specific example, you could use:

selector = utils.hexDataSlice(txData, 0, 4);
p1 = utils.hexDataSlice(txData, 4, 68);
p2 = utils.hexDataSlice(txData, 68);

But generally you should try using the ABI, which is more scalable, as you start trying to parse arbitrary data. The ABI greatly simplifies your life in the long run. :)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ghost
Comment options

@ghost
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant