Skip to content

Commit

Permalink
fixup! fixup! feat: implement lib
Browse files Browse the repository at this point in the history
  • Loading branch information
mpolitzer committed Oct 27, 2023
1 parent 15d1491 commit e3630f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions linux/libdriver/base/abi.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#include <assert.h>
#include <errno.h>
#include <string.h>
#include "abi.h"
Expand Down Expand Up @@ -144,7 +143,8 @@ int evm_abi_put_bytes_d(evm_buf_t *me, evm_buf_t *offset, size_t n, const void *

uint32_t evm_abi_peek_funsel(evm_buf_t *me)
{
assert(evm_buf_length(me) >= 4);
if (evm_buf_length(me) < 4)
return 0;
return EVM_ABI_FUNSEL(me->p[0], me->p[1], me->p[2], me->p[3]);
}

Expand Down

0 comments on commit e3630f2

Please sign in to comment.