Skip to content

Commit 88de1c6

Browse files
baziorekGrzegorz Bazior (Yodiss PSA)SamHSmith
authored
Fixing warning in command SubtractAssetQuantity, removing unnecessarily includes, small documentation change (#4251)
* Fixed warning in subtractAssetQuantity - description was not being copied * Removed unnecessarily includes * Added mention about how to merge new commits * Trying to add some command to Dockerfile to fix Golang dependencies Signed-off-by: Grzegorz Bazior (Yodiss PSA) <[email protected]> * Update Dockerfile Signed-off-by: Sam H. Smith <[email protected]> * Update Dockerfile Signed-off-by: Sam H. Smith <[email protected]> --------- Signed-off-by: Grzegorz Bazior (Yodiss PSA) <[email protected]> Signed-off-by: Sam H. Smith <[email protected]> Co-authored-by: Grzegorz Bazior (Yodiss PSA) <[email protected]> Co-authored-by: Sam H. Smith <[email protected]>
1 parent affab26 commit 88de1c6

File tree

6 files changed

+5
-10
lines changed

6 files changed

+5
-10
lines changed

CONTRIBUTING.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ Git Style Guide
167167
- First line of commit message must contain summary of work done,
168168
second line must contain empty line, third and other lines can
169169
contain list of commit changes
170+
- When merging to destination branche: use **Squash and merge**
170171

171172
C++ Style Guide
172173
~~~~~~~~~~~~~~~

docker/develop/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ RUN curl https://dl.google.com/go/go1.17.2.linux-$(dpkg --print-architecture).ta
4444
ENV GOPATH=/opt/gopath
4545
RUN mkdir ${GOPATH}
4646
ENV PATH=${PATH}:/opt/go/bin:${GOPATH}/bin
47+
RUN go install github.com/golang/protobuf/protoc-gen-go@latest
4748
RUN go get github.com/golang/protobuf/protoc-gen-go
4849
RUN export PATH="$PATH:$(go env GOPATH)/bin" # according to: https://grpc.io/docs/languages/go/quickstart/
50+
# RUN go mod init $(go env GOPATH) # according to: https://golangdocs.com/create-go-modules
4951

5052
## pip3 contains fresher versions of packages than apt
5153
RUN pip3 install --no-cache-dir cmake ninja

docker/iroha-builder/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ RUN curl -fL https://golang.org/dl/go1.17.2.linux-$(dpkg --print-architecture).t
4444
ENV GOPATH=/opt/gopath
4545
RUN mkdir ${GOPATH}
4646
ENV PATH=${PATH}:/opt/go/bin:${GOPATH}/bin
47+
RUN go install github.com/golang/protobuf/protoc-gen-go@latest
4748
RUN go get github.com/golang/protobuf/protoc-gen-go
4849
RUN export PATH="$PATH:$(go env GOPATH)/bin" # according to: https://grpc.io/docs/languages/go/quickstart/
4950

irohad/model/commands/subtract_asset_quantity.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace iroha {
3737

3838
SubtractAssetQuantity(const std::string &asset_id,
3939
const std::string &amount,
40-
const std::string &title)
40+
const std::string &description)
4141
: asset_id(asset_id), amount(amount), description(description) {}
4242
};
4343
} // namespace model

shared_model/backend/protobuf/impl/proto_block_factory.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55

66
#include "backend/protobuf/proto_block_factory.hpp"
77

8-
#include <sstream>
9-
108
#include <boost/assert.hpp>
119
#include "backend/protobuf/block.hpp"
1210

test/framework/integration_framework/fake_peer/behaviour/honest.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,9 @@
77

88
#include <boost/algorithm/string/join.hpp>
99
#include <boost/range/adaptor/transformed.hpp>
10-
#include "backend/protobuf/proto_proposal_factory.hpp"
11-
#include "backend/protobuf/transaction.hpp"
1210
#include "common/bind.hpp"
13-
#include "common/result.hpp"
1411
#include "framework/integration_framework/fake_peer/block_storage.hpp"
15-
#include "framework/integration_framework/fake_peer/proposal_storage.hpp"
16-
#include "interfaces/iroha_internal/transaction_batch.hpp"
1712
#include "logger/logger.hpp"
18-
#include "module/shared_model/builders/protobuf/proposal.hpp"
19-
#include "validators/default_validator.hpp"
2013

2114
using namespace iroha::expected;
2215

0 commit comments

Comments
 (0)