Skip to content

Commit dfb3cb3

Browse files
authored
Merge pull request Concordium#117 from blooo-io/chore/LDG-790-resolve-merge-conflicts
Chore/ldg 790 resolve merge conflicts with Ledger's develop
2 parents 1ab2970 + e68d3d1 commit dfb3cb3

267 files changed

Lines changed: 702 additions & 690 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.clang-format

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
---
22
BasedOnStyle: Google
33
IndentWidth: 4
4-
---
54
Language: Cpp
65
ColumnLimit: 100
76
PointerAlignment: Right
87
AlignAfterOpenBracket: Align
98
AlignConsecutiveMacros: true
109
AllowAllParametersOfDeclarationOnNextLine: false
1110
SortIncludes: false
12-
SpaceAfterCStyleCast: false
13-
SpacesInCStyleCastParentheses: false
11+
SpaceAfterCStyleCast: true
1412
AllowShortCaseLabelsOnASingleLine: false
1513
AllowAllArgumentsOnNextLine: false
1614
AllowShortBlocksOnASingleLine: Never

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ __pycache__/
2525
*.egg-info/
2626
.eggs/
2727
.python-version
28+
.venv/
2829

2930
# Doxygen
3031
doc/html
@@ -37,4 +38,7 @@ ledger/
3738
.DS_Store
3839

3940
# Helpers
40-
diff
41+
diff
42+
43+
# Vscode
44+
.vscode/

.vscode/c_cpp_properties.json

Lines changed: 0 additions & 56 deletions
This file was deleted.

.vscode/extensions.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

.vscode/launch.json

Lines changed: 0 additions & 26 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 0 additions & 102 deletions
This file was deleted.

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ APPNAME = "Concordium"
2929

3030
# Application version
3131
APPVERSION_M = 5
32-
APPVERSION_N = 5
33-
APPVERSION_P = 3
32+
APPVERSION_N = 6
33+
APPVERSION_P = 0
34+
3435
APPVERSION = "$(APPVERSION_M).$(APPVERSION_N).$(APPVERSION_P)"
3536

3637
DEFINES += APPVERSION=\"$(APPVERSION)\"

doc/ins_get_app_version.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Get application version
2+
3+
## Protocol description
4+
5+
- Single command
6+
7+
| INS | P1 | P2 | CDATA | Comment |
8+
| ------ | ------ | ------ | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------- |
9+
| `0x40` | `0x00` | `0x00` | `--` | |
10+
11+
Returns [MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION] as an array of three uint8.
12+

doc/ins_plt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Protocol Level Token (PLT)
22

3-
A transaction type for handling protocol llevel token operations. The transaction includes a token ID and CBOR-encoded operation data.
3+
A transaction type for handling protocol level token operations. The transaction includes a token ID and CBOR-encoded operation data.
44

55
## Protocol description
66

src/app_main.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ void app_main() {
5656
storage.dummy1_allowed = 0x00;
5757
storage.dummy2_allowed = 0x00;
5858
storage.initialized = 0x01;
59-
nvm_write((void *)&N_storage, &storage, sizeof(internal_storage_t));
59+
nvm_write((void *) &N_storage, &storage, sizeof(internal_storage_t));
6060
}
6161

6262
for (;;) {
@@ -89,6 +89,10 @@ void app_main() {
8989
isInitialCall = true;
9090
}
9191

92+
if (cmd.cla != CLA) {
93+
io_send_sw(ERROR_INVALID_CLA);
94+
}
95+
9296
// Dispatch structured APDU command to handler
9397
if (handler(cmd.ins, cmd.data, cmd.p1, cmd.p2, cmd.lc, &flags, isInitialCall) < 0) {
9498
PRINTF("=> handler failure\n");

0 commit comments

Comments
 (0)