Skip to content

Commit

Permalink
Fix after CR
Browse files Browse the repository at this point in the history
  • Loading branch information
rodiazet committed Feb 9, 2023
1 parent 2f87556 commit 0d06cfd
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions test/t8n/t8n.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ int main(int argc, const char* argv[])
fs::path output_dir;
fs::path output_result_file;
fs::path output_alloc_file;
std::optional<intx::uint256> block_reward;
std::optional<intx::uint256> block_reward = {};

for (int i = 0; i < argc; ++i)
{
Expand All @@ -56,12 +56,8 @@ int main(int argc, const char* argv[])
else if (arg == "--output.alloc" && ++i < argc)
output_alloc_file = argv[i];
else if (arg == "--state.reward" && ++i < argc)
{
if (std::string_view(argv[i]) == "-1")
block_reward = {};
else
if (std::string_view(argv[i]) != "-1")
block_reward = intx::from_string<intx::uint256>(argv[i]);
}
}

state::BlockInfo block;
Expand Down

0 comments on commit 0d06cfd

Please sign in to comment.