Skip to content

Commit b119eac

Browse files
committed
<fix>(codec): fix abi codec decode issue when static struct in dynamic struct scenario.
1 parent c1f78c7 commit b119eac

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/workflow.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
os: [ ubuntu-20.04, ubuntu-22.04, windows-2019, macos-12 ]
18+
os: [ ubuntu-22.04, windows-2019, macos-12 ]
1919
steps:
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v3
2121
with:
2222
fetch-depth: 5
23-
- uses: actions/cache@v2
23+
- uses: actions/cache@v3
2424
id: deps_cache
2525
with:
2626
path: |
@@ -61,13 +61,13 @@ jobs:
6161
strategy:
6262
fail-fast: false
6363
matrix:
64-
os: [ ubuntu-20.04 ]
64+
os: [ ubuntu-22.04 ]
6565
container: docker.io/centos:7
6666
steps:
67-
- uses: actions/checkout@v2
67+
- uses: actions/checkout@v3
6868
with:
6969
fetch-depth: 5
70-
- uses: actions/cache@v2
70+
- uses: actions/cache@v3
7171
id: deps_cache
7272
with:
7373
path: |

src/main/java/org/fisco/bcos/sdk/v3/codec/abi/TypeDecoder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ private static <T extends Type> T decodeDynamicStructElements(
441441
TypeReference.create(declaredField));
442442
staticOffset +=
443443
Utils.staticStructNestedPublicFieldsFlatList(
444-
(Class<Type>) classType)
444+
(Class<Type>) declaredField)
445445
.size()
446446
* Type.MAX_BYTE_LENGTH;
447447
} else {

0 commit comments

Comments
 (0)