Skip to content

Commit f1af37f

Browse files
authored
<fix>(ci): to fix test error in ubuntu 22.04. (#904)
1 parent 9f7afc6 commit f1af37f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/integration-test/java/org/fisco/bcos/sdk/v3/test/transaction/decoder/HashCalculatorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public void testTxHashCalculate() throws IOException {
125125
byteArrayOutputStream.write(transactionResponse.getMaxPriorityFeePerGas().getBytes());
126126
}
127127

128-
if(transactionResponse.getVersion() >= TransactionVersion.V2.getValue()){
128+
if(transactionResponse.getVersion() == TransactionVersion.V2.getValue()){
129129
byteArrayOutputStream.write(transactionResponse.getExtension());
130130
}
131131

src/main/java/org/fisco/bcos/sdk/v3/client/protocol/model/JsonTransactionResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public class JsonTransactionResponse {
4646
private static final Logger logger = LoggerFactory.getLogger(JsonTransactionResponse.class);
4747

4848
// the fields related to get-transaction
49-
private Integer version;
49+
private Integer version = 0;
5050
private String hash;
5151
private String nonce;
5252
private long blockLimit;

0 commit comments

Comments
 (0)