Skip to content

Commit

Permalink
<build>(project): upgrade to 1.6.0 (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyonRay authored Sep 11, 2024
1 parent 3866d69 commit f5ed6aa
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ext {
junitVersion = '4.13.2'
commonsLang3Version = '3.14.0'

javaSDKVersion3 = "3.7.0"
javaSDKVersion3 = "3.8.0"
javaSDKVersion2 = "2.10.0"
slf4jVersion = "1.7.36"
}
Expand All @@ -54,7 +54,7 @@ configurations.all {
// integrationTest.mustRunAfter test
allprojects {
group = 'org.fisco-bcos.code-generator'
version = '1.6.0-SNAPSHOT'
version = '1.6.0'
apply plugin: 'maven-publish'
apply plugin: 'idea'
apply plugin: 'eclipse'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2124,6 +2124,7 @@ private CodeBlock buildTypedResponse(
} else {
builder.addStatement("$L.log = eventValues.getLog()", objectName);
}
// indexed
for (int i = 0; i < indexedParameters.size(); i++) {
final NamedTypeName namedTypeName = indexedParameters.get(i);
String nativeConversion;
Expand Down Expand Up @@ -2153,6 +2154,7 @@ private CodeBlock buildTypedResponse(
i);
}

// non-indexed
for (int i = 0; i < nonIndexedParameters.size(); i++) {
final NamedTypeName namedTypeName = nonIndexedParameters.get(i);
String result = "$L.$L = ($T) eventValues.getNonIndexedValues().get($L)";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,13 @@ public void RechargeTestCodeGen() throws IOException {
codeGenTest(ABI_FILE, CONTRACT_NAME);
}

@Test
public void ListEventTestCodeGen() throws IOException {
final String ABI_FILE = "ListEventTest.abi";
final String CONTRACT_NAME = "ListEventTest";
codeGenTest(ABI_FILE, CONTRACT_NAME);
}

@Test
public void docTestCodeGen() throws IOException {
final String CONTRACT_NAME = "ERC721";
Expand Down
1 change: 1 addition & 0 deletions src/test/resources/ListEventTest.abi
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"int256[]","name":"","type":"int256[]"},{"indexed":false,"internalType":"string[]","name":"","type":"string[]"},{"indexed":false,"internalType":"uint256[]","name":"","type":"uint256[]"}],"name":"listEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"","type":"uint256"}],"name":"numbers","type":"event"},{"inputs":[],"name":"get","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mockFunctionOutOfGas","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"n","type":"string"}],"name":"set","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"string","name":"n","type":"string"}],"name":"testEvent","outputs":[],"stateMutability":"nonpayable","type":"function"}]

0 comments on commit f5ed6aa

Please sign in to comment.