Skip to content

Commit

Permalink
Fix build issues related to changes in "amount utils" (hyperledger-ir…
Browse files Browse the repository at this point in the history
…oha#1349)


Signed-off-by: Igor Egorov <[email protected]>
  • Loading branch information
igor-egorov authored May 18, 2018
1 parent c87dec0 commit 5c0631a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
4 changes: 4 additions & 0 deletions shared_model/utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
add_library(shared_model_amount_utils
amount_utils.cpp
)

target_link_libraries(shared_model_amount_utils
shared_model_proto_backend
)
4 changes: 4 additions & 0 deletions shared_model/utils/amount_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@
*/

#include "utils/amount_utils.hpp"

#include <boost/format.hpp>

#include "builders/default_builders.hpp"
#include "builders/protobuf/common_objects/proto_amount_builder.hpp"

namespace shared_model {
namespace detail {
const boost::multiprecision::uint256_t ten = 10;
Expand Down
6 changes: 4 additions & 2 deletions shared_model/utils/amount_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@

#include <boost/multiprecision/cpp_int.hpp>

#include "builders/default_builders.hpp"
#include "builders/protobuf/common_objects/proto_amount_builder.hpp"
#include "common/result.hpp"

namespace shared_model {
namespace interface {
class Amount;
} // namespace interface

namespace detail {
boost::multiprecision::uint256_t increaseValuePrecision(
boost::multiprecision::uint256_t value, int degree);
Expand Down
1 change: 1 addition & 0 deletions test/module/shared_model/amount_utils_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

#include <gtest/gtest.h>

#include "builders/default_builders.hpp"
#include "utils/amount_utils.hpp"

using namespace shared_model::detail;
Expand Down

0 comments on commit 5c0631a

Please sign in to comment.