Skip to content

Commit

Permalink
Fix clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Oct 9, 2022
1 parent 385261e commit 76ccc3b
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions test/state/host.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,19 @@ class Host : public evmc::Host
evmc::Result call(const evmc_message& msg) noexcept override;

private:
bool account_exists(const address& addr) const noexcept override;
[[nodiscard]] bool account_exists(const address& addr) const noexcept override;

bytes32 get_storage(const address& addr, const bytes32& key) const noexcept override;
[[nodiscard]] bytes32 get_storage(
const address& addr, const bytes32& key) const noexcept override;

evmc_storage_status set_storage(
const address& addr, const bytes32& key, const bytes32& value) noexcept override;

uint256be get_balance(const address& addr) const noexcept override;
[[nodiscard]] uint256be get_balance(const address& addr) const noexcept override;

size_t get_code_size(const address& addr) const noexcept override;
[[nodiscard]] size_t get_code_size(const address& addr) const noexcept override;

bytes32 get_code_hash(const address& addr) const noexcept override;
[[nodiscard]] bytes32 get_code_hash(const address& addr) const noexcept override;

size_t copy_code(const address& addr, size_t code_offset, uint8_t* buffer_data,
size_t buffer_size) const noexcept override;
Expand All @@ -55,9 +56,9 @@ class Host : public evmc::Host

evmc::Result create(const evmc_message& msg) noexcept;

evmc_tx_context get_tx_context() const noexcept override;
[[nodiscard]] evmc_tx_context get_tx_context() const noexcept override;

bytes32 get_block_hash(int64_t block_number) const noexcept override;
[[nodiscard]] bytes32 get_block_hash(int64_t block_number) const noexcept override;

void emit_log(const address& addr, const uint8_t* data, size_t data_size,
const bytes32 topics[], size_t topics_count) noexcept override;
Expand Down

0 comments on commit 76ccc3b

Please sign in to comment.