Skip to content

Commit

Permalink
<fix>(build,V3): fix v3 generate error in transaction manager, upgrad…
Browse files Browse the repository at this point in the history
…e to v1.4.0. (#32)
  • Loading branch information
kyonRay authored Mar 8, 2024
1 parent 6325a1b commit 109c604
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ext {
commonsLang3Version = '3.12.0'

javaSDKVersion3 = "3.6.0"
javaSDKVersion2 = "2.10.0-SNAPSHOT"
javaSDKVersion2 = "2.10.0"
slf4jVersion = "1.7.32"
}

Expand All @@ -50,7 +50,7 @@ sourceSets {
// integrationTest.mustRunAfter test
allprojects {
group = 'org.fisco-bcos.code-generator'
version = '1.4.0-SNAPSHOT'
version = '1.4.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 @@ -690,11 +690,13 @@ private MethodSpec buildConstructor() {
CONTRACT_ADDRESS,
CLIENT,
ContractWrapper.CREDENTIAL);
toReturn.addStatement(
"this.$N = new $T($N)",
ContractWrapper.TRANSACTION_MANAGER,
ProxySignTransactionManager.class,
CLIENT);
if (this.transactionVersion == CodeGenMain.TransactionVersion.V1.getV()) {
toReturn.addStatement(
"this.$N = new $T($N)",
ContractWrapper.TRANSACTION_MANAGER,
ProxySignTransactionManager.class,
CLIENT);
}
return toReturn.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class CodeGenV3Test {
public static Collection<Object[]> data() {
return Arrays.asList(
new Object[][] {
{false}, {true},
{true}, {false},
});
}

Expand Down

0 comments on commit 109c604

Please sign in to comment.