Skip to content

Commit

Permalink
style: clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
as-iotex committed Apr 17, 2022
1 parent b320b68 commit bfe9a1e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions src/abi/abiDecode.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ iotex::ResultCode decodeStaticArrayUint64(const char* pData, size_t arraySize, u
* @param[out] out A pointer to a Bignum where to store the decoded values. Must be able to hold
* at least arraySize elements.
*/
iotex::ResultCode decodeStaticArrayUint256(const char* pData, size_t arraySize, iotex::bignum::Bignum out[]);
iotex::ResultCode decodeStaticArrayUint256(const char* pData, size_t arraySize,
iotex::bignum::Bignum out[]);

/**
* @brief Decodes an ABI encoded static array of boolean values.
Expand Down Expand Up @@ -261,8 +262,9 @@ iotex::ResultCode decodeStaticArrayAddress(const char* pData, size_t arraySize,
* @param bytesSize The nuber of bytes in each element of the array.
* @param[out] out A vector of bytes where to store the decoded values.
*/
iotex::ResultCode decodeStaticArrayStaticBytes(const char* pData, size_t arraySize, size_t
bytesSize, std::vector<std::vector<uint8_t>>& out);
iotex::ResultCode decodeStaticArrayStaticBytes(const char* pData, size_t arraySize,
size_t bytesSize,
std::vector<std::vector<uint8_t>>& out);

/**
* @brief Decodes an ABI encoded static array of static bytes.
Expand All @@ -273,7 +275,8 @@ bytesSize, std::vector<std::vector<uint8_t>>& out);
* @param containsArrayOffset Whether the encoded data contains the header (offset).
*/
iotex::ResultCode decodeStaticArrayDynamicBytes(const char* pData, size_t arraySize,
std::vector<std::vector<uint8_t>>& out, bool containsArrayOffset = true);
std::vector<std::vector<uint8_t>>& out,
bool containsArrayOffset = true);

/**
* @brief Decodes an ABI encoded static array of strings.
Expand Down
2 changes: 1 addition & 1 deletion src/protobuf/pb_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ struct Transfer
struct Execution
{
char amount[IOTEX_MAX_BALANCE_STRLEN + 1] = {0};
char contract[IOTEX_ADDRESS_C_STRING_SIZE]= {0};
char contract[IOTEX_ADDRESS_C_STRING_SIZE] = {0};
IotexString data;
};

Expand Down

0 comments on commit bfe9a1e

Please sign in to comment.