Skip to content

Commit 6593a39

Browse files
authored
Merge pull request #18 from lazyledger/adlerjohn-encoder
Implement encoding
2 parents 965e401 + 0e99f94 commit 6593a39

File tree

5 files changed

+377
-23
lines changed

5 files changed

+377
-23
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ test-protoc-check:
2929
$(PROTOC) --version > /dev/null
3030

3131
$(TESTS_PASSING): build
32-
$(PROTOC) --plugin $(BIN_DIR)/$(TARGET_GEN_SOL) --sol_out license=Apache-2.0:$@ -I $@ $@/*.proto;
32+
$(PROTOC) --plugin $(BIN_DIR)/$(TARGET_GEN_SOL) --sol_out license=Apache-2.0,generate=decoder:$@ -I $@ $@/*.proto;
3333

3434
$(TESTS_FAILING): build
35-
! $(PROTOC) --plugin $(BIN_DIR)/$(TARGET_GEN_SOL) --sol_out license=Apache-2.0:$@ -I $@ $@/*.proto;
35+
! $(PROTOC) --plugin $(BIN_DIR)/$(TARGET_GEN_SOL) --sol_out $@ -I $@ $@/*.proto;

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ protoc --plugin protoc-gen-sol --sol_out license=Apache-2.0:. foo.proto
3535
- `compile`: default `inline`
3636
- `inline`: the generated library's functions will be inlined (`JUMP`)
3737
- `link`: the generated library's functions will be linked (`DELEGATECALL`)
38-
- `generate`: default `all`
38+
- `generate`: default `decoder`
3939
- `all`: both decoder and encoder will be generated
4040
- `decoder`: only decoder will be generated
41-
- `encoder`: only encoder will be generated
41+
- `encoder`: only encoder will be generated (experimental!)
4242

4343
### Feature support
4444

0 commit comments

Comments
 (0)