Skip to content

Commit

Permalink
abi: do not ignore function selector offset
Browse files Browse the repository at this point in the history
  • Loading branch information
mhw0 committed Oct 8, 2023
1 parent 8e89eb1 commit 76cd672
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/abi.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ int eth_abi_array(struct eth_abi *abi, uint64_t *len) {

if (abi->m == ETH_ABI_DECODE) {
ethc_abi_buf_pr64(dyoffset, cframebuf, cframebuf->offset);
dyoffset = cframebuf->offset % 32 != 0 ? dyoffset + 4 : dyoffset;
ethc_abi_buf_pr64(framelen, cframebuf, dyoffset);

nframebuf = (struct ethc_abi_buf*)malloc(sizeof(struct ethc_abi_buf));
Expand Down

0 comments on commit 76cd672

Please sign in to comment.